Fix escaping of i18n message shared-repo-from
authorBrian Wolff <bawolff+wn@gmail.com>
Mon, 16 Oct 2017 06:01:56 +0000 (06:01 +0000)
committerBrian Wolff <bawolff+wn@gmail.com>
Mon, 16 Oct 2017 06:01:56 +0000 (06:01 +0000)
[Discovered using an experimental phan plugin]

Change-Id: Ia580dbd0646e2087c676f9e6989b5330d2149845

includes/page/ImagePage.php

index 62f5d00..639cbd0 100644 (file)
@@ -963,7 +963,7 @@ EOT
                                $fromSrc = $this->getContext()->msg(
                                        'shared-repo-from',
                                        $file->getRepo()->getDisplayName()
-                               )->text();
+                               )->escaped();
                        }
                        $out->addHTML( "<li>{$link} {$fromSrc}</li>\n" );
                }