From: Tim Starling Date: Tue, 3 Jan 2006 00:51:57 +0000 (+0000) Subject: Fix #1 for WMF vulnerability X-Git-Tag: 1.6.0~798 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=17fe34b74f141218624466c730687b4323c07a48;p=lhc%2Fweb%2Fwiklou.git Fix #1 for WMF vulnerability --- diff --git a/includes/Linker.php b/includes/Linker.php index d400bef946..b9c5d070bb 100644 --- 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 = '';