From 30505ba6c95c7e366135ef2cc38bf0c60c3056c7 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Wed, 20 Jul 2016 19:45:28 +0930 Subject: Backport Remove input_errors2Ajax calls Original commit to master was https://github.com/pfsense/pfsense/commit/86d431a89d920f64dda5e7e1821f720daf6e067b --- src/usr/local/www/vpn_l2tp.php | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/usr/local/www/vpn_l2tp.php') 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']; -- cgit v1.1