diff options
-rw-r--r-- | etc/inc/util.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc index 92bb23f..6727f94 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -302,6 +302,8 @@ function is_validaliasname($name) { function is_port($port) { if (getservbyname($port, "tcp") || getservbyname($port, "udp")) return true; + if (!ctype_digit($port)) + return false; if ((intval($port) < 1) || (intval($port) > 65535)) return false; else |