diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-04-17 13:01:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-17 13:01:04 +0200 |
commit | 8f710a8fa3c50ff0020c771f05c0d4bb56f4787e (patch) | |
tree | 3eb1e3c03393ce8a6c49e01fefae4f2e30d03fca | |
parent | b99c6a4f97dfaa19d440c3482728f962f9cc207b (diff) | |
parent | 7bd3ecc65b120890eeb8137c85cdfcc2a15c712c (diff) | |
download | vyatta-cfg-8f710a8fa3c50ff0020c771f05c0d4bb56f4787e.tar.gz vyatta-cfg-8f710a8fa3c50ff0020c771f05c0d4bb56f4787e.zip |
Merge pull request #37 from erkin/current
T3356: Fix URL scheme check
-rwxr-xr-x | scripts/vyatta-save-config.pl | 2 |
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; } |