summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_pppoe_edit.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-01-24 10:09:06 +0000
committerErmal <eri@pfsense.org>2013-01-24 10:09:06 +0000
commit612230234f2522c2c370a1ed3ffd8bb969b50397 (patch)
treeead7df9ea51def0eb5dfa80f195dff8012e23c9a /usr/local/www/vpn_pppoe_edit.php
parent0e22dda58ddc010d12126ed6af6589ff76d03043 (diff)
downloadpfsense-612230234f2522c2c370a1ed3ffd8bb969b50397.zip
pfsense-612230234f2522c2c370a1ed3ffd8bb969b50397.tar.gz
Validate before taking the input and do anything with it
Diffstat (limited to 'usr/local/www/vpn_pppoe_edit.php')
-rwxr-xr-xusr/local/www/vpn_pppoe_edit.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/vpn_pppoe_edit.php b/usr/local/www/vpn_pppoe_edit.php
index 0919904..9afe2f5 100755
--- a/usr/local/www/vpn_pppoe_edit.php
+++ b/usr/local/www/vpn_pppoe_edit.php
@@ -145,6 +145,9 @@ if ($_POST) {
}
}
+ if ($_POST['pppoeid'] && !is_numeric($_POST['pppoeid']))
+ $input_errors[] = gettext("Wrong data submitted");
+
if (!$input_errors) {
$pppoecfg = array();
OpenPOWER on IntegriCloud