Switch from htmlentities() to htmlspecialchars() to work around PHP greek bug. We...
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 10 Jun 2004 07:35:13 +0000 (07:35 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 10 Jun 2004 07:35:13 +0000 (07:35 +0000)
PHPTAL-NP-0.7.0/libs/PHPTAL/OutputControl.php

index ce3c340..a62bf92 100644 (file)
@@ -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);
         }
     }