summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_aliases.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-02-07 05:00:50 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-02-07 05:00:50 +0000
commitb2774343a3e9d0a3533c7b71f42b6595252ed209 (patch)
tree61a6b767d071944adf55a997bea7b2a65613502c /usr/local/www/firewall_aliases.php
parenta46b841a2e33c9d55bd5de62384c52a902d6efcf (diff)
downloadpfsense-b2774343a3e9d0a3533c7b71f42b6595252ed209.zip
pfsense-b2774343a3e9d0a3533c7b71f42b6595252ed209.tar.gz
If an error occurs during the rule loading, report the error to the user.
Diffstat (limited to 'usr/local/www/firewall_aliases.php')
-rwxr-xr-xusr/local/www/firewall_aliases.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/firewall_aliases.php b/usr/local/www/firewall_aliases.php
index 770a7df..eaf0639 100755
--- a/usr/local/www/firewall_aliases.php
+++ b/usr/local/www/firewall_aliases.php
@@ -51,7 +51,10 @@ if ($_POST) {
$retval = filter_configure();
config_unlock();
}
- $savemsg = get_std_save_message($retval);
+ if(stristr($retval, "error") <> true)
+ $savemsg = get_std_save_message($retval);
+ else
+ $savemsg = $retval;
if ($retval == 0) {
if (file_exists($d_aliasesdirty_path))
unlink($d_aliasesdirty_path);
OpenPOWER on IntegriCloud