From 3619c810034238a7c98d3bc8eee28bc5f766d613 Mon Sep 17 00:00:00 2001 From: vargenau Date: Sat, 26 Sep 2009 16:51:39 +0000 Subject: [PATCH] htmlspecialchars_workaround unused git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@7158 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/config.php | 54 -------------------------------------------------- 1 file changed, 54 deletions(-) diff --git a/lib/config.php b/lib/config.php index ec149b0bc..09020a590 100644 --- a/lib/config.php +++ b/lib/config.php @@ -614,60 +614,6 @@ function getUploadDataPath() { . 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 -- 2.45.0