Project

General

Profile

« Previous | Next » 

Revision 91a73b8a

Added by Scott Ullrich over 15 years ago

_REQUEST has data, too. Don't just check _POST only.

View differences:

usr/local/www/guiconfig.inc
222 222
	}
223 223

  
224 224
	for ($i = 0; $i < count($reqdfields); $i++) {
225
		if ($_POST[$reqdfields[$i]] == "") {
225
		if ($_POST[$reqdfields[$i]] == "" && $_REQUEST[$reqdfields[$i]] == "") {
226 226
			$input_errors[] = "The field '" . $reqdfieldsn[$i] . "' is required.";
227 227
		}
228 228
	}

Also available in: Unified diff