Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persist redirect_to value in a more accurate manner #113

Merged
merged 2 commits into from
Feb 13, 2018

Conversation

danielbachhuber
Copy link
Contributor

@danielbachhuber danielbachhuber commented Feb 13, 2018

Pull it out of the URL when present:

/wp-login.php?redirect_to=http%3A%2F%2Fwp-saml-auth.dev%2Fwp-admin%2Fplugins.php&reauth=1

Otherwise, defer to $_SERVER['REQUEST_URI'] except when already on
wp-login.php

See #111
Previously #112

Pull it out of the URL when present:

```
/wp-login.php?redirect_to=http%3A%2F%2Fwp-saml-auth.dev%2Fwp-admin%2Fplugins.php&reauth=1
```

Otherwise, defer to `$_SERVER['REQUEST_URI']` except when already on
`wp-login.php`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant