https://bugzilla.wikimedia.org/show_bug.cgi?id=29531

--- Comment #4 from Tim Starling <[email protected]> 2011-06-27 07:23:36 
UTC ---
Try changing the strpos() in img_auth.php to strrpos(). Here's a patch file for
it if you prefer:

Index: img_auth.php
===================================================================
--- img_auth.php    (revision 90644)
+++ img_auth.php    (working copy)
@@ -46,7 +46,7 @@
 $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 );

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to