Project

General

Profile

« Previous | Next » 

Revision 9d3f5df1

Added by Bill Marquette almost 20 years ago

Return NULL if reserved word is matched (this wasn't a typo)

View differences:

etc/inc/util.inc
209 209
	/* Array of reserved words */
210 210
	$reserved = array("port", "pass");
211 211
	if (in_array($name, $reserved, true))
212
		return -1;
212
		return;
213 213

  
214 214
	if (!preg_match("/[^a-zA-Z0-9]/", $name))
215 215
		return true;

Also available in: Unified diff