Project

General

Profile

« Previous | Next » 

Revision c513ef24

Added by Stephen Beaver about 9 years ago

Fixed #6514 by requiring string starts with letter ot underscore

(cherry picked from commit f0a053846d6cde2724c47b5553e1395cfd21445c)

View differences:

src/usr/local/www/services_captiveportal_zones_edit.php
121 121
$section->addInput(new Form_Input(
122 122
	'zone',
123 123
	'Zone name'
124
))->setPattern('[0-9A-Za-z_]+')->setHelp('Zone name. Can only contain letters, digits, and underscores (_).');
124
))->setPattern('^[A-Za-z_][0-9A-Za-z_]+')->setHelp('Zone name. Can only contain letters, digits, and underscores (_) and may not start with a digit.');
125 125

  
126 126
$section->addInput(new Form_Input(
127 127
	'descr',

Also available in: Unified diff