From 4db2afbefaead5e93469944124a88a517fe96c9e Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 10 Jun 2004 07:35:13 +0000 Subject: [PATCH] Switch from htmlentities() to htmlspecialchars() to work around PHP greek bug. We should never be crossing charsets. --- PHPTAL-NP-0.7.0/libs/PHPTAL/OutputControl.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } } -- 2.20.1