diff options
Diffstat (limited to 'img_auth.php')
-rw-r--r-- | img_auth.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 ); |