Extend wfParseUrl() to handle protocol-relative URLs. parse_url() doesn't handle...
[lhc/web/wiklou.git] / img_auth.php
index 8ea7b01..ed4c6be 100644 (file)
@@ -46,7 +46,7 @@ $matches = WebRequest::getPathInfo();
 $path = $matches['title'];
 
 // Check for bug 28235: QUERY_STRING overriding the correct extension
-$dotPos = strpos( $path, '.' );
+$dotPos = strrpos( $path, '.' );
 $whitelist = array();
 if ( $dotPos !== false ) {
        $whitelist[] = substr( $path, $dotPos + 1 );