From: <var...@us...> - 2014-09-19 12:44:09
|
Revision: 9098 http://sourceforge.net/p/phpwiki/code/9098 Author: vargenau Date: 2014-09-19 12:44:06 +0000 (Fri, 19 Sep 2014) Log Message: ----------- htmlspecialchars_decode exists for PHP >= 5.1 Modified Paths: -------------- trunk/lib/config.php Modified: trunk/lib/config.php =================================================================== --- trunk/lib/config.php 2014-09-19 12:42:04 UTC (rev 9097) +++ trunk/lib/config.php 2014-09-19 12:44:06 UTC (rev 9098) @@ -315,16 +315,6 @@ return preg_match("%^${requri}[^/]*$%", $GLOBALS['HTTP_SERVER_VARS']['SCRIPT_NAME']); } -// htmlspecialchars_decode exists for PHP >= 5.1 -if (!function_exists('htmlspecialchars_decode')) { - - function htmlspecialchars_decode($text) - { - return strtr($text, array_flip(get_html_translation_table(HTML_SPECIALCHARS))); - } - -} - /** * safe php4 definition for clone. * php5 copies objects by reference, but we need to clone "deep copy" in some places. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |