Skip to content

Commit

Permalink
Merge pull request #137 from claytoncollie/fix/redirect-to
Browse files Browse the repository at this point in the history
SSO: check that `$REQUEST['redirect_to']` is a string before using it inside the conditional
  • Loading branch information
tlovett1 authored Aug 16, 2023
2 parents 62cc01e + 9495500 commit be7aec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/classes/SSO/SSO.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public function process_client_login() {
$tenup_login_failed = true;
} else {
$redirect_url = wp_login_url();
if ( isset( $_REQUEST['redirect_to'] ) ) {
if ( isset( $_REQUEST['redirect_to'] ) && is_string( $_REQUEST['redirect_to'] ) ) {
$redirect_url = add_query_arg( 'redirect_to', rawurlencode( $_REQUEST['redirect_to'] ), $redirect_url );
}

Expand Down

0 comments on commit be7aec0

Please sign in to comment.