From 6ab399208a0569cb47ffe9e33a63a5b5b07e7f5a Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Thu, 30 Jun 2011 01:44:11 +0000 Subject: [PATCH] * (bug 29531) r89628 breaks img_auth.php Apply Tims strpos -> strrpos fix, confirmed to work by bug reporter --- img_auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.20.1