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:
c80c134
)
Fix #1 for WMF vulnerability
author
Tim Starling
<tstarling@users.mediawiki.org>
Tue, 3 Jan 2006 00:51:57 +0000
(
00:51
+0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Tue, 3 Jan 2006 00:51:57 +0000
(
00:51
+0000)
includes/Linker.php
patch
|
blob
|
history
diff --git
a/includes/Linker.php
b/includes/Linker.php
index
d400bef
..
b9c5d07
100644
(file)
--- a/
includes/Linker.php
+++ b/
includes/Linker.php
@@
-381,6
+381,10
@@
class Linker {
global $wgContLang, $wgUser, $wgThumbLimits;
$img = new Image( $nt );
+ if ( !$img->allowInlineDisplay() ) {
+ return $this->makeKnownLinkObj( $nt );
+ }
+
$url = $img->getViewURL();
$prefix = $postfix = '';