| Index: net/url_request/url_request.cc
|
| diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
|
| index b80ebe01d11b9b1a9629db61b3a9520942d3f8a8..7bccf6d63942f27c936b6c4537b39af9c2eef291 100644
|
| --- a/net/url_request/url_request.cc
|
| +++ b/net/url_request/url_request.cc
|
| @@ -402,6 +402,9 @@ int URLRequest::Redirect(const GURL& location, int http_status_code) {
|
| return net::ERR_TOO_MANY_REDIRECTS;
|
| }
|
|
|
| + if (!location.is_valid())
|
| + return net::ERR_INVALID_URL;
|
| +
|
| if (!job_->IsSafeRedirect(location)) {
|
| DLOG(INFO) << "disallowing redirect: unsafe protocol";
|
| return net::ERR_UNSAFE_REDIRECT;
|
|
|