diff options
author | Ermal <eri@pfsense.org> | 2011-03-25 23:33:45 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-03-25 23:33:45 +0000 |
commit | cd2c71fcf695d1bc82d6c6c1b25a9a68e8a5837a (patch) | |
tree | 76170147b0477748bab79d7032da694115e932f2 /etc/inc/captiveportal.inc | |
parent | 3b68081f5a49e5b9eae96e35f8bf7f448acd89e1 (diff) | |
download | pfsense-cd2c71fcf695d1bc82d6c6c1b25a9a68e8a5837a.zip pfsense-cd2c71fcf695d1bc82d6c6c1b25a9a68e8a5837a.tar.gz |
Make sure that there is a value before using it as a redirection.
Diffstat (limited to 'etc/inc/captiveportal.inc')
-rw-r--r-- | etc/inc/captiveportal.inc | 2 |
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; |