Liangent has uploaded a new change for review. https://gerrit.wikimedia.org/r/76341
Change subject: Failing parser tests with LanguageConverter applied ...................................................................... Failing parser tests with LanguageConverter applied Found in https://gerrit.wikimedia.org/r/#/c/72053/ Change-Id: I9b099273203482ffb570a5654d8ba50c833e526d --- M tests/parser/extraParserTests.txt M tests/parser/parserTests.txt 2 files changed, 32 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/41/76341/1 diff --git a/tests/parser/extraParserTests.txt b/tests/parser/extraParserTests.txt index bef8f50..267d0ff 100644 --- a/tests/parser/extraParserTests.txt +++ b/tests/parser/extraParserTests.txt Binary files differ diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index e1f2370..bd2133f 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -8223,6 +8223,17 @@ !! end !! test +Escape HTML special chars in image alt text with LanguageConverter +!! options +language=zh +!! input +[[Image:foobar.jpg|& < > "]] +!! result +<p><a href="/wiki/File:Foobar.jpg" class="image" title="& < > ""><img alt="& < > "" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a> +</p> +!! end + +!! test BUG 499: Alt text should have Ӓ, not &1234; !! input [[Image:foobar.jpg|♀]] @@ -14473,6 +14484,27 @@ !! end +!! test +Gallery override link with absolute external link with LanguageConverter +!! options +language=zh +!! input +<gallery> +File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org +</gallery> +!! result +<ul class="gallery"> + <li class="gallerybox" style="width: 155px"><div style="width: 155px"> + <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="http://www.example.org"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div> + <div class="gallerytext"> +<p>caption +</p> + </div> + </div></li> +</ul> + +!! end + !!test Gallery override link with malicious javascript (bug 34852) !! input -- To view, visit https://gerrit.wikimedia.org/r/76341 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9b099273203482ffb570a5654d8ba50c833e526d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Liangent <liang...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits