From 7bd3ecc65b120890eeb8137c85cdfcc2a15c712c Mon Sep 17 00:00:00 2001 From: erkin Date: Sat, 17 Apr 2021 13:34:51 +0300 Subject: T3356: Fix URL scheme check --- scripts/vyatta-save-config.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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; } -- cgit v1.2.3