From 483d6f21f006c3d61473c4873c5f16bfbc54e865 Mon Sep 17 00:00:00 2001 From: Brian Wolff Date: Mon, 16 Oct 2017 06:01:56 +0000 Subject: [PATCH] Fix escaping of i18n message shared-repo-from [Discovered using an experimental phan plugin] Change-Id: Ia580dbd0646e2087c676f9e6989b5330d2149845 --- includes/page/ImagePage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/page/ImagePage.php b/includes/page/ImagePage.php index 62f5d00c33..639cbd07d6 100644 --- a/includes/page/ImagePage.php +++ b/includes/page/ImagePage.php @@ -963,7 +963,7 @@ EOT $fromSrc = $this->getContext()->msg( 'shared-repo-from', $file->getRepo()->getDisplayName() - )->text(); + )->escaped(); } $out->addHTML( "
  • {$link} {$fromSrc}
  • \n" ); } -- 2.20.1