diff options
author | sullrich <sullrich@pfsense.org> | 2009-12-05 21:36:59 -0500 |
---|---|---|
committer | sullrich <sullrich@pfsense.org> | 2009-12-05 21:36:59 -0500 |
commit | 91a73b8acfbb5fac4735dd4830a5c6e0198253ea (patch) | |
tree | e5f7ac1554cbf1f4d72e03223ab8bba725bc0e9c /usr/local/www | |
parent | b97c5ed65d787c38e3c5afa0a77277a594367ea5 (diff) | |
download | pfsense-91a73b8acfbb5fac4735dd4830a5c6e0198253ea.zip pfsense-91a73b8acfbb5fac4735dd4830a5c6e0198253ea.tar.gz |
_REQUEST has data, too. Don't just check _POST only.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/guiconfig.inc | 2 |
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."; } } |