From 7677db7bc9a1dcfcad1435fc9d3bac3f295ca3ad Mon Sep 17 00:00:00 2001 From: Simon Wisselink Date: Fri, 24 Mar 2023 12:19:34 +0100 Subject: [PATCH] Implement fix and tests --- libs/plugins/modifier.escape.php | 4 +++- libs/plugins/modifiercompiler.escape.php | 4 +++- .../PluginModifierEscapeTest.php | 21 +++++++++++++++++++ .../Operators/templates_c/.gitignore | 2 ++ 4 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 tests/UnitTests/TemplateSource/ValueTests/Operators/templates_c/.gitignore diff --git a/libs/plugins/modifier.escape.php b/libs/plugins/modifier.escape.php index 43353cfc..c2563589 100644 --- a/libs/plugins/modifier.escape.php +++ b/libs/plugins/modifier.escape.php @@ -188,7 +188,9 @@ function smarty_modifier_escape($string, $esc_type = 'html', $char_set = null, $ // see https://html.spec.whatwg.org/multipage/scripting.html#restrictions-for-contents-of-script-elements '