summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_gateways_edit.php
diff options
context:
space:
mode:
authorDarren Embry <dse@webonastick.com>2012-05-17 18:33:21 -0400
committerDarren Embry <dse@webonastick.com>2012-05-17 18:33:21 -0400
commita0edece98b120926a5af6d4502e1a2c4c835e52c (patch)
treec53f9c1b8d8c44f4093185ad6ac46b178dda4391 /usr/local/www/system_gateways_edit.php
parent8dcca9b51bf413509adfd8c36ec3c05b1e1b4ea9 (diff)
downloadpfsense-a0edece98b120926a5af6d4502e1a2c4c835e52c.zip
pfsense-a0edece98b120926a5af6d4502e1a2c4c835e52c.tar.gz
report errors adding a gateway through ajax calls
Diffstat (limited to 'usr/local/www/system_gateways_edit.php')
-rwxr-xr-xusr/local/www/system_gateways_edit.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php
index a9f28cf..3fc6a0a 100755
--- a/usr/local/www/system_gateways_edit.php
+++ b/usr/local/www/system_gateways_edit.php
@@ -269,7 +269,7 @@ if ($_POST) {
if ($_POST['latencyhigh'])
$gateway['latencyhigh'] = $_POST['latencyhigh'];
if ($_POST['losslow'])
- $gateway['losslow'] = $_POST['losslow'];
+ $gateway['losslow'] = $_POST['losslow'];
if ($_POST['losshigh'])
$gateway['losshigh'] = $_POST['losshigh'];
if ($_POST['down'])
@@ -294,6 +294,15 @@ if ($_POST) {
header("Location: system_gateways.php");
exit;
} else {
+ if ($_REQUEST['isAjax']) {
+ header("HTTP/1.0 500 Internal Server Error");
+ header("Content-type: text/plain");
+ foreach ($input_errors as $error) {
+ echo("$error\n");
+ }
+ exit;
+ }
+
$pconfig = $_POST;
if (empty($_POST['friendlyiface']))
$pconfig['friendlyiface'] = $_POST['interface'];
OpenPOWER on IntegriCloud