aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-02-25 00:04:18 -0500
committerB. Watson <urchlay@slackware.uk>2023-02-25 00:04:18 -0500
commit41916a854ea618b9f34d90c30c0f384832962bb2 (patch)
treecfa841927c0a04b11e8d5d77fa55cbd30c0d3dae
parent64453c9a69ec532ac0e1af36c0bf37c208faa85f (diff)
downloadsbo-maintainer-tools-41916a854ea618b9f34d90c30c0f384832962bb2.tar.gz
sbolint: don't allow $ in download URLs (variable expansion).
-rwxr-xr-xsbolint1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbolint b/sbolint
index ecdb424..d7c5ce2 100755
--- a/sbolint
+++ b/sbolint
@@ -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.
}