We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ded79a5 commit 413eb25Copy full SHA for 413eb25
packages/models-library/src/models_library/string_types.py
@@ -39,7 +39,7 @@ class XSSPattern(NamedTuple):
39
),
40
XSSPattern(
41
re.compile(
42
- r"(?i)\b(?:src|href|xlink:href|srcdoc)\s*=\s*['\"]?\s*(?:javascript:|vbscript:|data:)",
+ r"(?i)\b(?:src|href|xlink:href|srcdoc)\s*=\s*(?:['\"]\s*)?(?:javascript:|vbscript:|data:)",
43
re.IGNORECASE,
44
45
"Contains unsafe URL protocols in attributes",
0 commit comments