Project

General

Profile

« Previous | Next » 

Revision 7df02c1e

Added by Chris Buechler over 10 years ago

Skip any numeric-only aliases in the ruleset to prevent errors from those
who configured them on previous versions where that was allowed. Ticket

View differences:

etc/inc/util.inc
1430 1430
function alias_expand($name) {
1431 1431
	global $aliastable;
1432 1432

  
1433
	// alias names cannot be strictly numeric. redmine #4289
1434
	if (is_numericint($name))
1435
		return null;
1436
	
1433 1437
	if (isset($aliastable[$name]))
1434 1438
		return "\${$name}";
1435 1439
	else if (is_ipaddr($name) || is_subnet($name) || is_port($name) || is_portrange($name))

Also available in: Unified diff