Skip to content

Commit

Permalink
Update modifier.escape.php (#649)
Browse files Browse the repository at this point in the history
trigger a notice if an incorrect modifier was used (E.g.|escape:quotes vs |escape:quote).
  • Loading branch information
DavidGoodwin committed Mar 21, 2021
1 parent 290aee6 commit 039043e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/plugins/modifier.escape.php
Expand Up @@ -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;
}
}

0 comments on commit 039043e

Please sign in to comment.