From: <var...@us...> - 2009-09-26 16:52:02
|
Revision: 7158 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7158&view=rev Author: vargenau Date: 2009-09-26 16:51:39 +0000 (Sat, 26 Sep 2009) Log Message: ----------- htmlspecialchars_workaround unused Modified Paths: -------------- trunk/lib/config.php Modified: trunk/lib/config.php =================================================================== --- trunk/lib/config.php 2009-09-24 19:42:39 UTC (rev 7157) +++ trunk/lib/config.php 2009-09-26 16:51:39 UTC (rev 7158) @@ -614,60 +614,6 @@ . DATA_PATH . '/uploads/'; } -/** - * htmlspecialchars doesn't support some special 8bit charsets, which we do want to support. - * Well it just prints a warning which we could circumvent. - * Note: unused, since php htmlspecialchars does the same, just prints a warning which we silence - */ -/* -function htmlspecialchars_workaround($str, $quote=ENT_COMPAT, $charset='iso-8859-1') { - if (in_array(strtolower($charset), - array('iso-8859-2', 'iso8859-2', 'latin-2', 'latin2'))) - { - if (! ($quote & ENT_NOQUOTES)) { - $str = str_replace("\"", """, - $str); - } - if ($quote & ENT_QUOTES) { - $str = str_replace("\'", "'", - $str); - } - return str_replace(array("<", ">", "&"), - array("<", ">", "&"), $str); - } - else { - return htmlspecialchars($str, $quote, $charset); - } -} -*/ - -/** - * htmlspecialchars doesn't support some special 8bit charsets, which we do want to support. - * Well it just prints a warning which we could circumvent. - * Note: unused, since php htmlspecialchars does the same, just prints a warning which we silence - */ -/* -function htmlspecialchars_workaround($str, $quote=ENT_COMPAT, $charset='iso-8859-1') { - if (in_array(strtolower($charset), - array('iso-8859-2', 'iso8859-2', 'latin-2', 'latin2'))) - { - if (! ($quote & ENT_NOQUOTES)) { - $str = str_replace("\"", """, - $str); - } - if ($quote & ENT_QUOTES) { - $str = str_replace("\'", "'", - $str); - } - return str_replace(array("<", ">", "&"), - array("<", ">", "&"), $str); - } - else { - return htmlspecialchars($str, $quote, $charset); - } -} -*/ - // For emacs users // Local Variables: // mode: php This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |