Merge pull request #5250 from tausbn/python-port-re-security-queries

Python: Port URL sanitisation queries to API graphs
This commit is contained in:
Taus
2021-02-25 13:13:55 +01:00
committed by GitHub
4 changed files with 88 additions and 28 deletions

View File

@@ -7,5 +7,7 @@
| 50 | VERBOSE |
| 51 | UNICODE |
| 52 | UNICODE |
| 54 | DOTALL |
| 54 | VERBOSE |
| 56 | VERBOSE |
| 68 | MULTILINE |

View File

@@ -1 +0,0 @@
semmle-extractor-options: --max-import-depth=3

View File

@@ -51,7 +51,7 @@ re.compile("", flags=re.VERBOSE|re.IGNORECASE)
re.search("", None, re.UNICODE)
x = re.search("", flags=re.UNICODE)
# using addition for flags was reported as FP in https://github.com/github/codeql/issues/4707
re.compile("", re.VERBOSE+re.DOTALL) # TODO: Currently not recognized with Mode.ql
re.compile("", re.VERBOSE+re.DOTALL)
# re.X is an alias for re.VERBOSE
re.compile("", re.X)