* (bug 29531) r89628 breaks img_auth.php
authorSam Reed <reedy@users.mediawiki.org>
Thu, 30 Jun 2011 01:44:11 +0000 (01:44 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 30 Jun 2011 01:44:11 +0000 (01:44 +0000)
Apply Tims strpos -> strrpos fix, confirmed to work by bug reporter

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 );