Skip to content

Commit 061f801

Browse files
authored
remove "useless" escape (#1436)
closes symfony/symfony#60983
1 parent 137e347 commit 061f801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

symfony/stimulus-bundle/2.20/assets/controllers/csrf_protection_controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const nameCheck = /^[-_a-zA-Z0-9]{4,22}$/;
2-
const tokenCheck = /^[-_\/+a-zA-Z0-9]{24,}$/;
2+
const tokenCheck = /^[-_/+a-zA-Z0-9]{24,}$/;
33

44
// Generate and double-submit a CSRF token in a form field and a cookie, as defined by Symfony's SameOriginCsrfTokenManager
55
document.addEventListener('submit', function (event) {

0 commit comments

Comments
 (0)