mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Preserve all URLs when one of them is invalid
This commit is contained in:
parent
5a815dc720
commit
7cbeade191
@ -238,16 +238,18 @@ if ($_POST) {
|
||||
}
|
||||
if($isfirst == 0) {
|
||||
/* nothing was found */
|
||||
$input_errors[] = gettext("You must provide a valid URL. Could not fetch usable data.");
|
||||
$input_errors[] = sprintf(gettext("You must provide a valid URL. Could not fetch usable data from '%s'."), $_POST['address' . $x]);
|
||||
$dont_update = true;
|
||||
break;
|
||||
}
|
||||
$alias['aliasurl'][] = $_POST['address' . $x];
|
||||
mwexec("/bin/rm -rf {$temp_filename}");
|
||||
} else {
|
||||
$input_errors[] = gettext("You must provide a valid URL.");
|
||||
$address[] = $_POST['address' . $x];
|
||||
$alias['aliasurl'][] = $_POST['address' . $x];
|
||||
if ($_POST["detail{$x}"] <> "")
|
||||
$final_address_details[] = $_POST["detail{$x}"];
|
||||
$input_errors[] = sprintf(gettext("URL '%s' is not valid."), $_POST['address' . $x]);
|
||||
$dont_update = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user