From 3c38b4712ba683c8b7b0b5e46efdcd995b13123d Mon Sep 17 00:00:00 2001 From: Tammo ter Hark Date: Mon, 30 Nov 2026 14:08:17 +0100 Subject: [PATCH] =?UTF-8?q?fix(options):=20use=20|escape()=20instead=20of?= =?UTF-8?q?=20|e()=20=E2=80=94=20sandbox=20only=20allows=20'escape'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The twig sandbox policy (application/config/internal.php sandboxConfig) allows the filter name 'escape' but not its alias 'e', so the S2 escaping in options/options.twig threw SecurityNotAllowedFilterError (500) on the admin theme-options page. |escape() is the same filter/callable; all 16 theme twig templates now compile under the real sandbox policy (verified locally). Core-side wish filed: FEATURE_REQUEST_sandbox_allow_e_alias.md (local-only). Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- options/options.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/options/options.twig b/options/options.twig index 5b37c4c..e5c8a57 100644 --- a/options/options.twig +++ b/options/options.twig @@ -101,10 +101,10 @@ {% for image in templateConfiguration.imageFileList %} {% if image.group != imgGroup %} {% if imgGroup != '' %}{% set imageOptions = imageOptions ~ '' %}{% endif %} - {% set imageOptions = imageOptions ~ '' %} + {% set imageOptions = imageOptions ~ '' %} {% set imgGroup = image.group %} {% endif %} - {% set imageOptions = imageOptions ~ '' %} + {% set imageOptions = imageOptions ~ '' %} {% endfor %} {% if imgGroup != '' %}{% set imageOptions = imageOptions ~ '' %}{% endif %}