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: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?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 = '';