Fix linting

This commit is contained in:
Nigel Sheldon 2020-11-21 15:51:56 +01:00
commit 1614145b18
262 changed files with 45324 additions and 42695 deletions

View file

@ -18,7 +18,7 @@
*/
function smarty_function_escape_special_chars($string)
{
if(!is_array($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);
@ -27,5 +27,3 @@ function smarty_function_escape_special_chars($string)
}
/* vim: set expandtab: */
?>