summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-12-04 13:59:29 +0000
committerErmal Luçi <eri@pfsense.org>2009-12-04 14:01:13 +0000
commit9b45f82198894b23189e65a7117b2dce45b21904 (patch)
tree1eac883427ba23cd9922a0f13ea71fa56bfa4a8b /etc
parent07623d8ee8113a9f3583fbb2f9460954c74d9dd5 (diff)
downloadpfsense-9b45f82198894b23189e65a7117b2dce45b21904.zip
pfsense-9b45f82198894b23189e65a7117b2dce45b21904.tar.gz
Ticket #146 Fix typos ansd copy/pasto errors.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/util.inc8
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 */
OpenPOWER on IntegriCloud