Index: trunk/phase3/img_auth.php |
— | — | @@ -46,7 +46,7 @@ |
47 | 47 | $path = $matches['title']; |
48 | 48 | |
49 | 49 | // Check for bug 28235: QUERY_STRING overriding the correct extension |
50 | | -$dotPos = strpos( $path, '.' ); |
| 50 | +$dotPos = strrpos( $path, '.' ); |
51 | 51 | $whitelist = array(); |
52 | 52 | if ( $dotPos !== false ) { |
53 | 53 | $whitelist[] = substr( $path, $dotPos + 1 ); |