From c38a20879f90b06441ca757300bc827edddc757d Mon Sep 17 00:00:00 2001 From: Craig Heydenburg Date: Tue, 8 Jul 2025 10:22:21 -0400 Subject: [PATCH] remove "useless" escape closes https://github.com/symfony/symfony/issues/60983 --- .../2.20/assets/controllers/csrf_protection_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/symfony/stimulus-bundle/2.20/assets/controllers/csrf_protection_controller.js b/symfony/stimulus-bundle/2.20/assets/controllers/csrf_protection_controller.js index 2811f210b..c722f024a 100644 --- a/symfony/stimulus-bundle/2.20/assets/controllers/csrf_protection_controller.js +++ b/symfony/stimulus-bundle/2.20/assets/controllers/csrf_protection_controller.js @@ -1,5 +1,5 @@ const nameCheck = /^[-_a-zA-Z0-9]{4,22}$/; -const tokenCheck = /^[-_\/+a-zA-Z0-9]{24,}$/; +const tokenCheck = /^[-_/+a-zA-Z0-9]{24,}$/; // Generate and double-submit a CSRF token in a form field and a cookie, as defined by Symfony's SameOriginCsrfTokenManager document.addEventListener('submit', function (event) {