From: Brion Vibber Date: Thu, 10 Jun 2004 07:35:13 +0000 (+0000) Subject: Switch from htmlentities() to htmlspecialchars() to work around PHP greek bug. We... X-Git-Tag: 1.5.0alpha1~2949 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=4db2afbefaead5e93469944124a88a517fe96c9e;p=lhc%2Fweb%2Fwiklou.git Switch from htmlentities() to htmlspecialchars() to work around PHP greek bug. We should never be crossing charsets. --- diff --git a/PHPTAL-NP-0.7.0/libs/PHPTAL/OutputControl.php b/PHPTAL-NP-0.7.0/libs/PHPTAL/OutputControl.php index ce3c3403d6..a62bf9244f 100644 --- a/PHPTAL-NP-0.7.0/libs/PHPTAL/OutputControl.php +++ b/PHPTAL-NP-0.7.0/libs/PHPTAL/OutputControl.php @@ -65,7 +65,9 @@ class PHPTAL_OutputControl } else { // $this->_buffer .= htmlentities($str); // support for cyrillic strings thanks to Igor E. Poteryaev - $this->_buffer .= htmlentities($str, $this->_quoteStyle, $this->_encoding); + // **** hacked to htmlspecialchars() to avoid messing with text. + // **** PHP prior to 4.3.7 contains bugs that mess up Greek. + $this->_buffer .= htmlspecialchars($str, $this->_quoteStyle, $this->_encoding); } }