dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efd79d7
)
* (bug 29531) r89628 breaks img_auth.php
author
Sam Reed
<reedy@users.mediawiki.org>
Thu, 30 Jun 2011 01:44:11 +0000
(
01:44
+0000)
committer
Sam Reed
<reedy@users.mediawiki.org>
Thu, 30 Jun 2011 01:44:11 +0000
(
01:44
+0000)
Apply Tims strpos -> strrpos fix, confirmed to work by bug reporter
img_auth.php
patch
|
blob
|
history
diff --git
a/img_auth.php
b/img_auth.php
index
8ea7b01
..
ed4c6be
100644
(file)
--- 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 = str
r
pos( $path, '.' );
$whitelist = array();
if ( $dotPos !== false ) {
$whitelist[] = substr( $path, $dotPos + 1 );