From c55dbbc995e152af3f2c88662101b0643d2e171a Mon Sep 17 00:00:00 2001 From: vdigital Date: Fri, 23 May 2008 22:38:14 +0000 Subject: Removed file/folder git-svn-id: http://piwigo.org/svn/trunk@2358 68402e56-0260-453c-a942-63ccdbb3a9ee --- .../libs/plugins/shared.escape_special_chars.php | 31 ---------------------- 1 file changed, 31 deletions(-) delete mode 100644 BSF/include/smarty/libs/plugins/shared.escape_special_chars.php (limited to 'BSF/include/smarty/libs/plugins/shared.escape_special_chars.php') diff --git a/BSF/include/smarty/libs/plugins/shared.escape_special_chars.php b/BSF/include/smarty/libs/plugins/shared.escape_special_chars.php deleted file mode 100644 index c07ce31be..000000000 --- a/BSF/include/smarty/libs/plugins/shared.escape_special_chars.php +++ /dev/null @@ -1,31 +0,0 @@ - - * Purpose: used by other smarty functions to escape - * special chars except for already escaped ones - * @author Monte Ohrt - * @param string - * @return string - */ -function smarty_function_escape_special_chars($string) -{ - if(!is_array($string)) { - $string = preg_replace('!&(#?\w+);!', '%%%SMARTY_START%%%\\1%%%SMARTY_END%%%', $string); - $string = htmlspecialchars($string); - $string = str_replace(array('%%%SMARTY_START%%%','%%%SMARTY_END%%%'), array('&',';'), $string); - } - return $string; -} - -/* vim: set expandtab: */ - -?> -- cgit v1.2.3