[Plugin: Mozilla BrowserID] [Plugin: BrowserID] Redirect Bug?
-
Hi Marcel,
I think I found a bug in the way the plugin redirects. When I go to domain.com/wp-admin/
I get redirected to https://domain.com/wp-login.php?redirect_to=http%3A%2F%2Fdomain.com%2Fwp-admin%2F&reauth=1
Now after I signed I with BrowserID I would get redirected to https://domain.com/%2Fwp-admin%2F or https://domain.com/http%3A%2F%2Fdomain.com%2Fwp-admin%2F both ways get 404-errors.The bug seems to be fixed by adding urldecode() to the redirect_to.
In Handle_login():
$redirect_to = urldecode($_REQUEST[‘redirect_to’]);But, I’m not sure this is a good fix, because the PHP manual says to not call it on $_REQUEST.(https://php.net/manual/en/function.urldecode.php)
Kind regards,
Marvin
- The topic ‘[Plugin: Mozilla BrowserID] [Plugin: BrowserID] Redirect Bug?’ is closed to new replies.