Skip to content

Commit

Permalink
Check that value is a string before using
Browse files Browse the repository at this point in the history
  • Loading branch information
claytoncollie committed Aug 3, 2023
1 parent 62cc01e commit 9495500
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 9495500

Please sign in to comment.