summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-04-17 13:01:04 +0200
committerGitHub <noreply@github.com>2021-04-17 13:01:04 +0200
commit8f710a8fa3c50ff0020c771f05c0d4bb56f4787e (patch)
tree3eb1e3c03393ce8a6c49e01fefae4f2e30d03fca
parentb99c6a4f97dfaa19d440c3482728f962f9cc207b (diff)
parent7bd3ecc65b120890eeb8137c85cdfcc2a15c712c (diff)
downloadvyatta-cfg-8f710a8fa3c50ff0020c771f05c0d4bb56f4787e.tar.gz
vyatta-cfg-8f710a8fa3c50ff0020c771f05c0d4bb56f4787e.zip
Merge pull request #37 from erkin/current
T3356: Fix URL scheme check
-rwxr-xr-xscripts/vyatta-save-config.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-save-config.pl b/scripts/vyatta-save-config.pl
index 693c4da..39f1f9e 100755
--- a/scripts/vyatta-save-config.pl
+++ b/scripts/vyatta-save-config.pl
@@ -57,7 +57,7 @@ if ($save_file =~ /^[^\/]\w+:\//) {
if ($save_file =~ /^(\w+):\/\/\w/) {
$mode = 'url';
$proto = lc($1);
- if (grep { lc($topdir) ne $_ } ("ftp", "tftp", "http", "https", "scp", "sftp")) {
+ if (grep { lc($proto) ne $_ } ("ftp", "tftp", "scp", "sftp")) {
print "Invalid url protocol [$proto]\n";
exit 1;
}