From 75abb5292328bdb07a91ad7229a121ab3446569d Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sun, 17 Apr 2011 11:49:55 +0200 Subject: update to MediaWiki 1.16.4 --- 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 534d1fd2..26ba9413 100644 --- a/img_auth.php +++ b/img_auth.php @@ -39,7 +39,7 @@ if ( $wgImgAuthPublicTest // Check for bug 28235: QUERY_STRING overriding the correct extension if ( isset( $_SERVER['QUERY_STRING'] ) - && preg_match( '/\.[a-z]{1,4}$/i', $_SERVER['QUERY_STRING'] ) ) + && preg_match( '/\.[a-z0-9]{1,4}(#|\?|$)/i', $_SERVER['QUERY_STRING'] ) ) { wfForbidden( 'img-auth-accessdenied', 'img-auth-bad-query-string' ); } -- cgit v1.2.2