From 10a20261648028c3f1bde0aeb9bcf50bd43f8cc5 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Mon, 3 Jul 2017 09:47:52 +0200 Subject: [PATCH] Add urlencode for URL encoding of lang values Change-Id: I3ebeff2b947543a40aaaab502403b47346a1b9a4 --- includes/filerepo/FileRepo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/filerepo/FileRepo.php b/includes/filerepo/FileRepo.php index 8edf81f131..f89d96b218 100644 --- a/includes/filerepo/FileRepo.php +++ b/includes/filerepo/FileRepo.php @@ -776,7 +776,7 @@ class FileRepo { public function getDescriptionRenderUrl( $name, $lang = null ) { $query = 'action=render'; if ( !is_null( $lang ) ) { - $query .= '&uselang=' . $lang; + $query .= '&uselang=' . urlencode( $lang ); } if ( isset( $this->scriptDirUrl ) ) { return $this->makeUrl( -- 2.20.1