Skip to content

Commit

Permalink
Merge pull request #67 from WP-API/fix-redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
kadamwhite authored May 31, 2021
2 parents ed15f31 + 3124b62 commit dedbd68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/types/class-authorization-code.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ protected function handle_authorization_submission( $submit, Client $client, $da
);

$generated_redirect = add_query_arg( urlencode_deep( $redirect_args ), $redirect_uri );
wp_safe_redirect( $generated_redirect );
// phpcs:ignore WordPress.Security.SafeRedirect -- Intentionally external redirect, secured via client registration.
wp_redirect( $generated_redirect );
exit;
}
}

0 comments on commit dedbd68

Please sign in to comment.