summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-04-18 14:52:51 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-04-18 14:52:51 -0300
commitecf8dba773705303bba39feed529d2b8f7f0577f (patch)
tree60357eab662997c41199f56d3b67d95341c6af54
parente523bba432618a93ada4788c8389bc64347ebac4 (diff)
downloadpfsense-ecf8dba773705303bba39feed529d2b8f7f0577f.zip
pfsense-ecf8dba773705303bba39feed529d2b8f7f0577f.tar.gz
Make more strict comparison to avoid type issues when gw name only contain numbers. Fixes #2956
-rw-r--r--etc/inc/gwlb.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index 3f449f5..689f77c 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -1,7 +1,7 @@
<?php
/*
Copyright (C) 2008 Bill Marquette, Seth Mos
- Copyright (C) 2010 Ermal Luçi
+ Copyright (C) 2010 Ermal Lu?i
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -546,7 +546,7 @@ function lookup_gateway_ip_by_name($name) {
$gateways_arr = return_gateways_array();
foreach ($gateways_arr as $gname => $gw) {
- if ($gw['name'] == $name || $gname == $name)
+ if ($gw['name'] === $name || $gname === $name)
return $gw['gateway'];
}
OpenPOWER on IntegriCloud