Re: squirrelmail characters problems after upgrading ubuntu server from 12.04 to 12.10

"Andrés Chandía" <[email protected]> Wed, 7 Nov 2012 19:48:55 -0000
Newsgroups gmane.mail.squirrelmail.internationalization
Message-ID <[email protected]>
--===============8518552515735436546==
Content-Type: multipart/alternative;boundary="----=_20121107194855_27619"

------=_20121107194855_27619
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable



If this is what you refer to:
"return htmlspecialchars($string, ENT_COMPAT |
ENT_HTML401, $encoding);  to   return htmlspecialchars($string, ENT_COMPA=
T,
$encoding);"

I coud not find any "ENT_HTML401"

but:

grep -r "ENT_COMPAT" .
./functions/i18n.php:    if (! $save_html)
$string =3D htmlspecialchars ($string,ENT_COMPAT,'iso-8859-1');
./functions/i18n.patch:+  =20
if (! $save_html) $string =3D htmlspecialchars ($string,ENT_COMPAT,'iso-8=
859-1');
./functions/i18n.php.orig:    if (! $save_html) $string =3D htmlspecialch=
ars
($string,ENT_COMPAT,'iso-8859-1');
./functions/url_parser.php:               =20
in_array($match[0],sq_get_html_translation_table(HTML_ENTITIES,ENT_COMPAT=
,'utf-8')))) {
./plugins/quicksave/login_functions.php:function
convert_html_entities_to_unicode_entities($string, $quote_style=3DENT_COM=
PAT)
./bigpatch.patch:+    return htmlspecialchars($string, ENT_COMPAT, $encod=
ing);
./squirrelmail/functions/url_parser.php:               =20
in_array($match[0],sq_get_html_translation_table(HTML_ENTITIES,ENT_COMPAT=
,'utf-8')))) {
./squirrelmail/plugins/quicksave/login_functions.php:function
convert_html_entities_to_unicode_entities($string, $quote_style=3DENT_COM=
PAT)
./src/compose.patch:+            echo
"\n\n".htmlspecialchars(decodeHeader($body,false,false,true),ENT_COMPAT,'=
iso-8859-1');
./src/compose.patch:+            echo
"\n\n".htmlspecialchars(decodeHeader($body,false,false,true),ENT_COMPAT,'=
iso-8859-1');
./src/compose.patch:+        echo
htmlspecialchars(decodeHeader($body,false,false,true),ENT_COMPAT,'iso-885=
9-1');
./src/compose.php:            echo
"\n\n".htmlspecialchars(decodeHeader($body,false,false,true),ENT_COMPAT,'=
iso-8859-1');
./src/compose.php:            echo
"\n\n".htmlspecialchars(decodeHeader($body,false,false,true),ENT_COMPAT,'=
iso-8859-1');
./src/compose.php:        echo
htmlspecialchars(decodeHeader($body,false,false,true),ENT_COMPAT,'iso-885=
9-1');

If
you didn't mean that, could you explain to me what is the change you reff=
er to?
Thanks

On Wed, November 7, 2012 19:31, Tomas Kuliavas wrote:
> 2012.11.07
15:14 "Andr=C3=83=C2=A9s Chand=C3=83=C2=ADa" ra=C3=85=C2=A1=C3=84=E2=80=94=
:
>>
>>
>> It seems that if the original message appears or not at
the answer it
>> depends on the
>> codification of the sender of the
original message, because even with
>> interface in english
>> some
answers do not include the original message.
>=20
> SquirrelMail 1.4.22 has
about 230 htmlspecialchars calls. Most of them are
> not affected by this problem, but
if you want to play safe, you are free
> to replace them all with three parameter
htmlspecialchars version from
> email thread in my previous link.
>=20
>
Please note that I am not SquirrelMail developer and I have no intention
> of writing
patches for SquirrelMail.
>=20



_______________________
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0a=
ndr=C3=A9s
chand=C3=ADa

P No imprima
innecesariamente. =C2=A1Cuide el medio ambiente!

------=_20121107194855_27619
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<pre>If this is what you refer to:<br />&quot;return htmlspecialchars($st=
ring, ENT_COMPAT |
ENT_HTML401, $encoding);  to   return htmlspecialchars($string, ENT_COMPA=
T,
$encoding);&quot;<br /><br />I coud not find any &quot;ENT_HTML401&quot;<=
br /><br />but:<br
/><br />grep -r &quot;ENT_COMPAT&quot; .<br />./functions/i18n.php:    if=
 (! $save_html)
$string =3D htmlspecialchars ($string,ENT_COMPAT,'iso-8859-1');<br />./fu=
nctions/i18n.patch:+  =20
if (! $save_html) $string =3D htmlspecialchars ($string,ENT_COMPAT,'iso-8=
859-1');<br
/>./functions/i18n.php.orig:    if (! $save_html) $string =3D htmlspecial=
chars
($string,ENT_COMPAT,'iso-8859-1');<br />./functions/url_parser.php:      =
         =20
in_array($match[0],sq_get_html_translation_table(HTML_ENTITIES,ENT_COMPAT=
,'utf-8')))) {<br
/>./plugins/quicksave/login_functions.php:function
convert_html_entities_to_unicode_entities($string, $quote_style=3DENT_COM=
PAT)<br
/>./bigpatch.patch:+    return htmlspecialchars($string, ENT_COMPAT, $enc=
oding);<br
/>./squirrelmail/functions/url_parser.php:               =20
in_array($match[0],sq_get_html_translation_table(HTML_ENTITIES,ENT_COMPAT=
,'utf-8')))) {<br
/>./squirrelmail/plugins/quicksave/login_functions.php:function
convert_html_entities_to_unicode_entities($string, $quote_style=3DENT_COM=
PAT)<br
/>./src/compose.patch:+            echo
&quot;\n\n&quot;.htmlspecialchars(decodeHeader($body,false,false,true),EN=
T_COMPAT,'iso-8859-1');<br
/>./src/compose.patch:+            echo
&quot;\n\n&quot;.htmlspecialchars(decodeHeader($body,false,false,true),EN=
T_COMPAT,'iso-8859-1');<br
/>./src/compose.patch:+        echo
htmlspecialchars(decodeHeader($body,false,false,true),ENT_COMPAT,'iso-885=
9-1');<br
/>./src/compose.php:            echo
&quot;\n\n&quot;.htmlspecialchars(decodeHeader($body,false,false,true),EN=
T_COMPAT,'iso-8859-1');<br
/>./src/compose.php:            echo
&quot;\n\n&quot;.htmlspecialchars(decodeHeader($body,false,false,true),EN=
T_COMPAT,'iso-8859-1');<br
/>./src/compose.php:        echo
htmlspecialchars(decodeHeader($body,false,false,true),ENT_COMPAT,'iso-885=
9-1');<br /><br />If
you didn't mean that, could you explain to me what is the change you reff=
er to?</pre>
Thanks<br /><br />On Wed, November 7, 2012 19:31, Tomas Kuliavas wrote:<b=
r />&gt; 2012.11.07
15:14 &quot;Andr&Atilde;&copy;s Chand&Atilde;&shy;a&quot; ra&Aring;&iexcl=
;&Auml;&mdash;:<br
/>&gt;&gt;<br />&gt;&gt;<br />&gt;&gt; It seems that if the original mess=
age appears or not at
the answer it<br />&gt;&gt; depends on the<br />&gt;&gt; codification of =
the sender of the
original message, because even with<br />&gt;&gt; interface in english<br=
 />&gt;&gt; some
answers do not include the original message.<br />&gt; <br />&gt; Squirre=
lMail 1.4.22 has
about 230 htmlspecialchars calls. Most of them are<br />&gt; not affected=
 by this problem, but
if you want to play safe, you are free<br />&gt; to replace them all with=
 three parameter
htmlspecialchars version from<br />&gt; email thread in my previous link.=
<br />&gt; <br />&gt;
Please note that I am not SquirrelMail developer and I have no intention<=
br />&gt; of writing
patches for SquirrelMail.<br />&gt; <br /><br /><br /><br />_____________=
__________<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;andr&eacute;s
chand&iacute;a<br /><a title=3D"This external link will open in a new win=
dow" target=3D"_blank"
href=3D"http://www.chandia.net"><img border=3D"0" alt=3D"chandia.net"
src=3D"http://www.chandia.net/sites/default/files/images/chandia.netd.png=
" /></a><br /><span
style=3D"font-size: 18pt; color: rgb(79, 98, 40); font-family: Webdings;"=
>P </span><span
style=3D"font-size: 10pt; color: rgb(79, 98, 40); font-family: 'Arial','s=
ans-serif';">No imprima
innecesariamente. &iexcl;Cuide el medio ambiente!</span>
------=_20121107194855_27619--




--===============8518552515735436546==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
--===============8518552515735436546==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-----
squirrelmail-i18n mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
Information about translations: http://squirrelmail.org/wiki/LanguageTranslation
Statistics for translations: http://l10n-stats.squirrelmail.org/
List address: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.internationalization
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-i18n
--===============8518552515735436546==--