From: Brian Wolff Date: Mon, 16 Oct 2017 06:01:56 +0000 (+0000) Subject: Fix escaping of i18n message shared-repo-from X-Git-Tag: 1.31.0-rc.0~1768^2 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=483d6f21f006c3d61473c4873c5f16bfbc54e865;p=lhc%2Fweb%2Fwiklou.git Fix escaping of i18n message shared-repo-from [Discovered using an experimental phan plugin] Change-Id: Ia580dbd0646e2087c676f9e6989b5330d2149845 --- 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" ); }