diff options
author | Ermal <eri@pfsense.org> | 2013-01-24 10:09:06 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-01-24 10:09:06 +0000 |
commit | 612230234f2522c2c370a1ed3ffd8bb969b50397 (patch) | |
tree | ead7df9ea51def0eb5dfa80f195dff8012e23c9a /usr/local/www/vpn_pppoe_edit.php | |
parent | 0e22dda58ddc010d12126ed6af6589ff76d03043 (diff) | |
download | pfsense-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-x | usr/local/www/vpn_pppoe_edit.php | 3 |
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(); |