Index: trunk/phase3/includes/HttpFunctions.php |
— | — | @@ -184,9 +184,9 @@ |
185 | 185 | global $wgHTTPTimeout; |
186 | 186 | |
187 | 187 | $this->url = wfExpandUrl( $url, PROTO_HTTP ); |
188 | | - $this->parsedUrl = parse_url( $this->url ); |
| 188 | + $this->parsedUrl = wfParseUrl( $this->url ); |
189 | 189 | |
190 | | - if ( !Http::isValidURI( $this->url ) ) { |
| 190 | + if ( !$this->parsedUrl || !Http::isValidURI( $this->url ) ) { |
191 | 191 | $this->status = Status::newFatal( 'http-invalid-url' ); |
192 | 192 | } else { |
193 | 193 | $this->status = Status::newGood( 100 ); // continue |