Project

General

Profile

« Previous | Next » 

Revision df6986ad

Added by Scott Ullrich about 19 years ago

MFC 12516
Allow alphanumeric and - and _ in queue names only per:
http://forum.pfsense.org/index.php?topic=1351.0

View differences:

usr/local/www/firewall_shaper_queues_edit.php
104 104
			|| ($_POST['priority'] < 1) || ($_POST['priority'] > 100))) {
105 105
		$input_errors[] = "The priority must be an integer between 1 and 100.";
106 106
	}
107
	if (!preg_match("/^[a-zA-Z0-9_-]*$/", $_POST['name']))
108
		$input_errors[] = gettext("Queue names must be alphanumeric and _ or - only.");
107 109

  
108 110
	switch($config['shaper']['schedulertype']) {
109 111
		case 'hfsc':

Also available in: Unified diff