Index: trunk/phase3/includes/upload/UploadFromUrl.php |
— | — | @@ -49,8 +49,9 @@ |
50 | 50 | return true; |
51 | 51 | } |
52 | 52 | $valid = false; |
| 53 | + $parsedUrl = wfParseUrl( $url ); |
53 | 54 | foreach( $wgCopyUploadsDomains as $domain ) { |
54 | | - if ( strpos( $url, $domain ) !== false ) { |
| 55 | + if ( $parsedUrl['host'] === $domain ) { |
55 | 56 | $valid = true; |
56 | 57 | break; |
57 | 58 | } |