diff options
author | erkin <e.altunbas@vyos.io> | 2021-04-17 13:34:51 +0300 |
---|---|---|
committer | erkin <e.altunbas@vyos.io> | 2021-04-17 13:34:51 +0300 |
commit | 7bd3ecc65b120890eeb8137c85cdfcc2a15c712c (patch) | |
tree | 3eb1e3c03393ce8a6c49e01fefae4f2e30d03fca /scripts | |
parent | c194b9de2b4596753b127a55b327edd97fc71aae (diff) | |
download | vyatta-cfg-7bd3ecc65b120890eeb8137c85cdfcc2a15c712c.tar.gz vyatta-cfg-7bd3ecc65b120890eeb8137c85cdfcc2a15c712c.zip |
T3356: Fix URL scheme check
Diffstat (limited to 'scripts')
-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; } |