diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-02-09 22:56:36 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-02-09 22:56:36 +0000 |
commit | 8c984f57b726b029a78011c47500cbf4ac849910 (patch) | |
tree | 280685b3a81158b3f4fdd25d465bbcca0e0b7061 /usr | |
parent | 739090a9eadb98d999f27841328b3fc736d631a6 (diff) | |
download | pfsense-8c984f57b726b029a78011c47500cbf4ac849910.zip pfsense-8c984f57b726b029a78011c47500cbf4ac849910.tar.gz |
Return false if $net is not defined.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/guiconfig.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc index 41edb6e..8670874 100755 --- a/usr/local/www/guiconfig.inc +++ b/usr/local/www/guiconfig.inc @@ -769,7 +769,8 @@ function pconfig_to_address(&$adr, $padr, $pmask, $pnot=false, $pbeginport=0, $p function is_specialnet($net) { global $specialsrcdst; - + if(!$net) + return false; if (in_array($net, $specialsrcdst) || strstr($net, "opt")) return true; else |