Return to patch-functions_i18n_php CVS log | Up to [local] / ports / mail / squirrelmail / patches |
File: [local] / ports / mail / squirrelmail / patches / patch-functions_i18n_php (download)
Revision 1.1, Thu Oct 10 03:57:10 2013 UTC (10 years, 8 months ago) by kirby
fix empty subjects. default value for htmlspecialchars changed from ISO-8859-1 to UTF-8 in php 5.4 and default htmlspecialchars behaviour is to return empty string once non-utf character is found (if utf/default encoding is used). |
$OpenBSD$ --- functions/i18n.php.orig Thu Oct 10 07:53:21 2013 +++ functions/i18n.php Thu Oct 10 07:53:57 2013 @@ -184,7 +184,7 @@ function charset_decode ($charset, $string, $force_dec } /* All HTML special characters are 7 bit and can be replaced first */ - if (! $save_html) $string = htmlspecialchars ($string); + if (! $save_html) $string = htmlspecialchars ($string, ENT_COMPAT, 'ISO-8859-1'); $charset = strtolower($charset); set_my_charset();