diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-04-02 16:22:47 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-04-02 16:22:47 -0300 |
commit | 7cbeade191bfb4812c80fc40b72f1cd144d82b8f (patch) | |
tree | be62c379b3daeb7ec40b089f7b69ac7745dce7d1 /usr/local/www/firewall_aliases_edit.php | |
parent | 5a815dc7202cdea0d9019babe075a3db9707484d (diff) | |
download | pfsense-7cbeade191bfb4812c80fc40b72f1cd144d82b8f.zip pfsense-7cbeade191bfb4812c80fc40b72f1cd144d82b8f.tar.gz |
Preserve all URLs when one of them is invalid
Diffstat (limited to 'usr/local/www/firewall_aliases_edit.php')
-rwxr-xr-x | usr/local/www/firewall_aliases_edit.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr/local/www/firewall_aliases_edit.php b/usr/local/www/firewall_aliases_edit.php index bbc4ee9..b455b4f 100755 --- a/usr/local/www/firewall_aliases_edit.php +++ b/usr/local/www/firewall_aliases_edit.php @@ -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; } } } |