Skip to content

Commit

Permalink
Add a TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Jul 14, 2024
1 parent a585515 commit 3774de3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/WordPress/AsyncHttp/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,7 @@ private function handle_redirects( $requests ) {
$redirect_url .= $location;
}

// @TODO: Use a WHATWG-compliant URL parser
if ( ! filter_var( $redirect_url, FILTER_VALIDATE_URL ) ) {
$this->set_error( $request, new HttpError( 'Invalid redirect URL' ) );
continue;
Expand Down

0 comments on commit 3774de3

Please sign in to comment.