Revision bac9941b
Added by Jim Pingle about 14 years ago
etc/inc/util.inc | ||
---|---|---|
473 | 473 |
$reserved = array("port", "pass"); |
474 | 474 |
if (in_array($name, $reserved, true)) |
475 | 475 |
return; /* return NULL */ |
476 |
|
|
477 |
if (!preg_match("/[^a-zA-Z0-9_]/", $name)) |
|
476 |
if (!preg_match("/[^a-zA-Z0-9_]/", $name) && (strlen($name) < 32)) |
|
478 | 477 |
return true; |
479 | 478 |
else |
480 | 479 |
return false; |
Also available in: Unified diff
Reject alias names that are too long. Fixes #1510