mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Update regex pattern for cookie flags in plugin.json for improved validation
This commit is contained in:
parent
7e8f1ef25d
commit
b0006a6c94
2 changed files with 3 additions and 3 deletions
|
|
@ -17,7 +17,7 @@ repos:
|
|||
- id: check-case-conflict
|
||||
|
||||
- repo: https://github.com/psf/black
|
||||
rev: b965c2a5026f8ba399283ba3e01898b012853c79 # frozen: 24.8.0
|
||||
rev: 1b2427a2b785cc4aac97c19bb4b9a0de063f9547 # frozen: 24.10.0
|
||||
hooks:
|
||||
- id: black
|
||||
name: Black Python Formatter
|
||||
|
|
@ -67,7 +67,7 @@ repos:
|
|||
types: [text]
|
||||
|
||||
- repo: https://github.com/gitleaks/gitleaks
|
||||
rev: ce2702a4889da86abb07e0fb0482e9a6e12a9f24 # frozen: v8.20.0
|
||||
rev: a9e1950fe247fbb08817393121691474c55a6cfa # frozen: v8.21.2
|
||||
hooks:
|
||||
- id: gitleaks
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@
|
|||
"help": "Cookie flags automatically added to all cookies (value accepted for nginx_cookie_flag_module).",
|
||||
"id": "cookie-flags",
|
||||
"label": "Cookie flags",
|
||||
"regex": "^((\\*|[^;]+)( (HttpOnly|(SameSite)(?!.*\\4)(=(Lax|Strict))?)(?!.*\\3))+)?$",
|
||||
"regex": "^(\\*|[^;]+)( (HttpOnly|(SameSite)(?!.*\\4)(=(Lax|Strict))?)(?!.*\\3))*$",
|
||||
"type": "text",
|
||||
"multiple": "cookie-flags"
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue