From 17fe34b74f141218624466c730687b4323c07a48 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 3 Jan 2006 00:51:57 +0000 Subject: [PATCH] Fix #1 for WMF vulnerability --- includes/Linker.php | 4 ++++ 1 file changed, 4 insertions(+) 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 = ''; -- 2.20.1