diff options
author | B. Watson <urchlay@slackware.uk> | 2023-02-25 00:04:18 -0500 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2023-02-25 00:04:18 -0500 |
commit | 41916a854ea618b9f34d90c30c0f384832962bb2 (patch) | |
tree | cfa841927c0a04b11e8d5d77fa55cbd30c0d3dae | |
parent | 64453c9a69ec532ac0e1af36c0bf37c208faa85f (diff) | |
download | sbo-maintainer-tools-41916a854ea618b9f34d90c30c0f384832962bb2.tar.gz |
sbolint: don't allow $ in download URLs (variable expansion).
-rwxr-xr-x | sbolint | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1033,6 +1033,7 @@ sub check_url { return 0 if $_[0] =~ /\s/; # ...it contains a space, return 0 if $_[0] !~ /\./; # ...it has no dots, or return 0 if $_[0] !~ /\//; # ...it has no slashes, or + return 0 if $_[0] =~ /\$/; # ...it contains a dollar sign, or return ($_[0] =~ /^(?:ftp|https?):\/\//); # ...it doesn't have a known protocol, # ...which doesn't necessarily mean it's a good URL either. } |