monitoring: allow ? in QR https payloads (Play Store)
This commit is contained in:
parent
f7856525f3
commit
9950bb05dd
1 changed files with 6 additions and 3 deletions
|
|
@ -49,10 +49,13 @@ def looks_like_real_uri(uri: str) -> bool:
|
|||
return False
|
||||
if re.match(r"^taler://pay/?$", uri, re.I):
|
||||
return False
|
||||
# trailing junk from HTML/JS
|
||||
if uri.endswith((")", "(", "\\", "^", "*", "+", "?")):
|
||||
# trailing junk / JS regex fragments (allow ? & = in query strings)
|
||||
if uri.endswith((")", "(", "\\", "^", "*")):
|
||||
return False
|
||||
if re.search(r"[\\^$*+?]", uri):
|
||||
if re.search(r"[\\^$*]", uri):
|
||||
return False
|
||||
# lone incomplete `taler://…?` without path
|
||||
if re.match(r"^taler://[^/]+$", uri, re.I):
|
||||
return False
|
||||
return True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue