mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 15:16:30 +03:00
remove "useless" escape (#1436)
closes https://github.com/symfony/symfony/issues/60983
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user