Index: trunk/phase3/includes/HttpFunctions.php |
— | — | @@ -855,7 +855,7 @@ |
856 | 856 | # Check security of URL |
857 | 857 | $url = $this->getResponseHeader( "Location" ); |
858 | 858 | |
859 | | - if ( substr( $url, 0, 7 ) !== 'http://' ) { |
| 859 | + if ( !HTTP::isValidURI( $url ) ) { |
860 | 860 | wfDebug( __METHOD__ . ": insecure redirection\n" ); |
861 | 861 | break; |
862 | 862 | } |