From a1d6bc1cb7a4cc83b225a9b9afb8ad268710038e Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Wed, 5 Oct 2011 10:16:49 +0000 Subject: [PATCH] (bug 31363) Expand description URLs for thumbnails to canonical form --- includes/filerepo/File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/filerepo/File.php b/includes/filerepo/File.php index 30717f678c..630f1f8d18 100644 --- a/includes/filerepo/File.php +++ b/includes/filerepo/File.php @@ -735,7 +735,7 @@ abstract class File { // Get the descriptionUrl to embed it as comment into the thumbnail. Bug 19791. $descriptionUrl = $this->getDescriptionUrl(); if ( $descriptionUrl ) { - $params['descriptionUrl'] = $wgServer . $descriptionUrl; + $params['descriptionUrl'] = wfExpandUrl( $descriptionUrl, PROTO_CANONICAL ); } $script = $this->getTransformScript(); -- 2.20.1