Project

General

Profile

« Previous | Next » 

Revision 78d8dd47

Added by Chris Buechler over 9 years ago

Fix input validation check. Ticket #6231

View differences:

src/usr/local/www/services_captiveportal_vouchers.php
251 251

  
252 252
	if (!$_POST['vouchersyncusername']) {
253 253
		// Check for form errors
254
		if ($_POST['charset'] && (strlen($_POST['charset'] < 2))) {
254
		if ($_POST['charset'] && (strlen($_POST['charset']) < 2)) {
255 255
			$input_errors[] = gettext("Need at least 2 characters to create vouchers.");
256 256
		}
257 257
		if ($_POST['charset'] && (strpos($_POST['charset'], "\"") > 0)) {

Also available in: Unified diff