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:
59f9339
)
FU r105512: urldecode() the file and thumb name in wfExtractThumbParams() for 404...
author
Aaron Schulz
<aaron@users.mediawiki.org>
Thu, 22 Dec 2011 00:43:11 +0000
(
00:43
+0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Thu, 22 Dec 2011 00:43:11 +0000
(
00:43
+0000)
thumb.php
patch
|
blob
|
history
diff --git
a/thumb.php
b/thumb.php
index
15574b8
..
51f7ec6
100644
(file)
--- a/
thumb.php
+++ b/
thumb.php
@@
-233,6
+233,8
@@
function wfExtractThumbParams( $uri ) {
// Check if this is a valid looking thumbnail request...
if ( preg_match( $thumbUrlRegex, $uri, $matches ) ) {
list( /* all */, $archOrTemp, $filename, $thumbname ) = $matches;
+ $filename = urldecode( $filename );
+ $thumbname = urldecode( $thumbname );
$params = array( 'f' => $filename );
if ( $archOrTemp == '/archive' ) {