diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-12-04 13:59:29 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-12-04 14:01:13 +0000 |
commit | 9b45f82198894b23189e65a7117b2dce45b21904 (patch) | |
tree | 1eac883427ba23cd9922a0f13ea71fa56bfa4a8b /etc | |
parent | 07623d8ee8113a9f3583fbb2f9460954c74d9dd5 (diff) | |
download | pfsense-9b45f82198894b23189e65a7117b2dce45b21904.zip pfsense-9b45f82198894b23189e65a7117b2dce45b21904.tar.gz |
Ticket #146 Fix typos ansd copy/pasto errors.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/util.inc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc index 8dda952..0915f03 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -300,10 +300,7 @@ function is_validaliasname($name) { /* returns true if $port is a valid TCP/UDP port */ function is_port($port) { - if (!is_numericint($port)) - return false; - - if (($port < 1) || ($port > 65535)) + if ((intval($port) < 1) || (intval($port) > 65535)) return false; else return true; @@ -332,8 +329,7 @@ function is_portoralias($port) { } return false; } else - return is_port($ipaddr); - + return is_port($port); } /* returns true if $val is a valid shaper bandwidth value */ |