diff options
author | Phil Davis <phil.davis@inf.org> | 2016-07-20 19:45:28 +0930 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2016-07-20 19:45:28 +0930 |
commit | 30505ba6c95c7e366135ef2cc38bf0c60c3056c7 (patch) | |
tree | fda11782410d0ef409bc47488298253546dcd4db /src/usr/local/www/vpn_l2tp.php | |
parent | c9d6b915daced9767ff596ee9485ec2d9a573a41 (diff) | |
download | pfsense-30505ba6c95c7e366135ef2cc38bf0c60c3056c7.zip pfsense-30505ba6c95c7e366135ef2cc38bf0c60c3056c7.tar.gz |
Backport Remove input_errors2Ajax calls
Original commit to master was
https://github.com/pfsense/pfsense/commit/86d431a89d920f64dda5e7e1821f720daf6e067b
Diffstat (limited to 'src/usr/local/www/vpn_l2tp.php')
-rw-r--r-- | src/usr/local/www/vpn_l2tp.php | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/usr/local/www/vpn_l2tp.php b/src/usr/local/www/vpn_l2tp.php index 4d37242..80ad5ad 100644 --- a/src/usr/local/www/vpn_l2tp.php +++ b/src/usr/local/www/vpn_l2tp.php @@ -125,12 +125,6 @@ if ($_POST) { $input_errors[] = gettext("Number of L2TP users must be between 1 and 255"); } - /* if this is an AJAX caller then handle via JSON */ - if (isAjax() && is_array($input_errors)) { - input_errors2Ajax($input_errors); - exit; - } - if (!$input_errors) { $_POST['remoteip'] = $pconfig['remoteip'] = gen_subnet($_POST['remoteip'], $_POST['l2tp_subnet']); if (is_inrange_v4($_POST['localip'], $_POST['remoteip'], ip_after($_POST['remoteip'], $_POST['n_l2tp_units'] - 1))) { @@ -142,12 +136,6 @@ if ($_POST) { } } - /* if this is an AJAX caller then handle via JSON */ - if (isAjax() && is_array($input_errors)) { - input_errors2Ajax($input_errors); - exit; - } - if (!$input_errors) { $l2tpcfg['remoteip'] = $_POST['remoteip']; $l2tpcfg['localip'] = $_POST['localip']; |