summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorsullrich <sullrich@pfsense.org>2009-12-05 21:36:59 -0500
committersullrich <sullrich@pfsense.org>2009-12-05 21:36:59 -0500
commit91a73b8acfbb5fac4735dd4830a5c6e0198253ea (patch)
treee5f7ac1554cbf1f4d72e03223ab8bba725bc0e9c /usr/local/www
parentb97c5ed65d787c38e3c5afa0a77277a594367ea5 (diff)
downloadpfsense-91a73b8acfbb5fac4735dd4830a5c6e0198253ea.zip
pfsense-91a73b8acfbb5fac4735dd4830a5c6e0198253ea.tar.gz
_REQUEST has data, too. Don't just check _POST only.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/guiconfig.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc
index 04aab2c..2fb5afa 100755
--- a/usr/local/www/guiconfig.inc
+++ b/usr/local/www/guiconfig.inc
@@ -222,7 +222,7 @@ function do_input_validation($postdata, $reqdfields, $reqdfieldsn, $input_errors
}
for ($i = 0; $i < count($reqdfields); $i++) {
- if ($_POST[$reqdfields[$i]] == "") {
+ if ($_POST[$reqdfields[$i]] == "" && $_REQUEST[$reqdfields[$i]] == "") {
$input_errors[] = "The field '" . $reqdfieldsn[$i] . "' is required.";
}
}
OpenPOWER on IntegriCloud