Update modifier.escape.php (#649)

trigger a notice if an incorrect modifier was used (E.g.|escape:quotes vs |escape:quote).
This commit is contained in:
David Goodwin
2021-03-21 20:21:55 +00:00
committed by GitHub
parent 290aee6db3
commit 039043e5a2

View File

@@ -250,6 +250,7 @@ function smarty_modifier_escape($string, $esc_type = 'html', $char_set = null, $
}
return $return;
default:
trigger_error("escape: unsupported type: $esc_type - returning unmodified string", E_USER_NOTICE);
return $string;
}
}