From 41916a854ea618b9f34d90c30c0f384832962bb2 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 25 Feb 2023 00:04:18 -0500 Subject: sbolint: don't allow $ in download URLs (variable expansion). --- sbolint | 1 + 1 file changed, 1 insertion(+) 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. } -- cgit v1.2.3