From e75165565e9e5956a73365c24d650ba40570ae72 Mon Sep 17 00:00:00 2001 From: Simon Wisselink Date: Fri, 24 Mar 2023 12:19:34 +0100 Subject: [PATCH 1/3] 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 11e44682..e168679c 100644 --- a/libs/plugins/modifier.escape.php +++ b/libs/plugins/modifier.escape.php @@ -115,7 +115,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 '