Skip to content

Commit

Permalink
Merge pull request #109 from interceptorMadMax/master
Browse files Browse the repository at this point in the history
Update class-wp-saml-auth.php - login url compatibility
  • Loading branch information
danielbachhuber authored Jan 19, 2018
2 parents 4cadae3 + dd94a0e commit 3bfdd03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/class-wp-saml-auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public function do_saml_authentication() {
}
$attributes = $this->provider->getAttributes();
$redirect_to = filter_input( INPUT_POST, 'RelayState', FILTER_SANITIZE_URL );
if ( $redirect_to && false === stripos( $redirect_to, 'wp-login.php' ) ) {
if ( $redirect_to && false === stripos( $redirect_to, parse_url( wp_login_url(), PHP_URL_PATH ) ) ) {
add_filter(
'login_redirect', function() use ( $redirect_to ) {
return $redirect_to;
Expand Down

0 comments on commit 3bfdd03

Please sign in to comment.