Skip to content

Commit

Permalink
make-sanitise-string-less-global (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankrb authored Oct 24, 2024
1 parent b711128 commit ca7890c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/anemoi/utils/sanitise.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def _sanitise_string(obj):

parsed = urlparse(obj, allow_fragments=True)

if parsed.scheme:
if parsed.scheme and parsed.scheme[0].isalpha():
return _sanitise_url(parsed)

if obj.startswith("/") or obj.startswith("~"):
Expand Down

0 comments on commit ca7890c

Please sign in to comment.