Bug #11842
closedCaptive Portal post-auth redirect is not properly respected
100%
Description
The value of "After authentication Redirection URL" in Captive Portal is supposed to override the automatically detected browser request URL so that the user is forced to go to that destination. This is the behavior stated under the field in the GUI. It is not a value of last resort.
Currently the code is not respecting that behavior.
While here, the redirect code handling is a bit of a mess and needs fixed up in general.
Updated by Jim Pingle over 3 years ago
- Status changed from New to Feedback
- % Done changed from 0 to 100
Applied in changeset de9ba32bd3531ccf74e143391deaacb77e085097.
Updated by Gertjan KROEB over 3 years ago
A feedback :
I saw my browser sending 'plain http' to the https port.
File /etc/inc/captiveportal.inc line 2261 :
$protocol = (isset($cpcfg['httpslogin'])) ? 'https://' : 'http://';
$cpcfg is assigned a couple of lines lower, line 2275 :
$cpcfg = $config['captiveportal'][$cpzone];
I put this line before line 2261 and all is well.
edit : is it ok to leave message like this over here ?
Updated by Jim Pingle over 3 years ago
- Status changed from Feedback to In Progress
I'll look into that ASAP, thanks for testing!
Updated by Jim Pingle over 3 years ago
- Status changed from In Progress to Feedback
- % Done changed from 90 to 100
Applied in changeset 48860631d02e7aea6c03cef043a58081a1fadbb8.
Updated by Jim Pingle over 3 years ago
- Target version changed from 2.6.0 to 2.5.2