Index: net/url_request/url_request_ftp_job.cc |
=================================================================== |
--- net/url_request/url_request_ftp_job.cc (revision 25619) |
+++ net/url_request/url_request_ftp_job.cc (working copy) |
@@ -62,8 +62,10 @@ |
DCHECK(scheme == "ftp"); |
+ int port = request->url().IntPort(); |
+ |
if (request->url().has_port() && |
- !net::IsPortAllowedByFtp(request->url().IntPort())) |
+ !net::IsPortAllowedByFtp(port) && !net::IsPortAllowedByOverride(port)) |
return new URLRequestErrorJob(request, net::ERR_UNSAFE_PORT); |
return new URLRequestFtpJob(request); |