summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-03-25 23:33:45 +0000
committerErmal <eri@pfsense.org>2011-03-25 23:33:45 +0000
commitcd2c71fcf695d1bc82d6c6c1b25a9a68e8a5837a (patch)
tree76170147b0477748bab79d7032da694115e932f2 /etc
parent3b68081f5a49e5b9eae96e35f8bf7f448acd89e1 (diff)
downloadpfsense-cd2c71fcf695d1bc82d6c6c1b25a9a68e8a5837a.zip
pfsense-cd2c71fcf695d1bc82d6c6c1b25a9a68e8a5837a.tar.gz
Make sure that there is a value before using it as a redirection.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/captiveportal.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index 625695c..196d83c 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -1740,7 +1740,7 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut
/* redirect user to desired destination */
if (!empty($attributes['url_redirection']))
$my_redirurl = $attributes['url_redirection'];
- else if ($config['captiveportal']['redirurl'])
+ else if (!empty($config['captiveportal']['redirurl']))
$my_redirurl = $config['captiveportal']['redirurl'];
else
$my_redirurl = $redirurl;
OpenPOWER on IntegriCloud