From a22fbfc60f36f5f7ee10d5ae6fe347340c2ee67c Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sat, 3 Dec 2011 09:20:55 +0100 Subject: Update to MediaWiki 1.17.1 --- img_auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'img_auth.php') diff --git a/img_auth.php b/img_auth.php index 1daba85f..4fa301b6 100644 --- a/img_auth.php +++ b/img_auth.php @@ -49,7 +49,7 @@ if( !isset( $_SERVER['PATH_INFO'] ) ) { } // 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 ); -- cgit v1.2.2