Commit 96a6c56
committed
PB-2205: using re.fullmatch() instead if re.match()
Using fullmatch() instead of match() only makes the service safer.
This way, even if the regex is not anchored, map.geo.admin.ch.evil.com
bypass trick will still be detected by the fullmatch and blocked.
Otherwise the regex needs to be anchored.1 parent f0d1632 commit 96a6c56
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
0 commit comments