From: Sam Reed Date: Thu, 30 Jun 2011 01:44:11 +0000 (+0000) Subject: * (bug 29531) r89628 breaks img_auth.php X-Git-Tag: 1.31.0-rc.0~29170 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22sites_tous%22%29%20.%20%22?a=commitdiff_plain;h=6ab399208a0569cb47ffe9e33a63a5b5b07e7f5a;p=lhc%2Fweb%2Fwiklou.git * (bug 29531) r89628 breaks img_auth.php Apply Tims strpos -> strrpos fix, confirmed to work by bug reporter --- diff --git a/img_auth.php b/img_auth.php index 8ea7b01a7b..ed4c6be4b3 100644 --- a/img_auth.php +++ b/img_auth.php @@ -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 );