Page MenuHomePhabricator

Parsoid: Interwiki links with angle brackets should be invalid
Closed, ResolvedPublic

Description

Probably a mediawiki-title bug?

$ echo '[[MeatBall:Soft<>"Security]]' | php maintenance/parse.php 
<div class="mw-parser-output"><p>[[MeatBall:Soft&lt;&gt;"Security]]
</p></div>

but

$ echo '[[MeatBall:Soft<>"Security]]' | bin/parse.js --normalize
<p><a href='http://meatballwiki.org/wiki/Soft&lt;>"Security' title='meatball:Soft&lt;>"Security'>MeatBall:Soft&lt;>"Security</a></p>

Event Timeline

cscott created this task.Dec 7 2017, 5:04 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 7 2017, 5:04 PM

Change 396059 had a related patch set uploaded (by C. Scott Ananian; owner: C. Scott Ananian):
[mediawiki/services/parsoid@master] Tweak Sanitizer test to pass in PHP; also add new test for T182338

https://gerrit.wikimedia.org/r/396059

Change 396059 merged by jenkins-bot:
[mediawiki/services/parsoid@master] Tweak Sanitizer test to pass in PHP; also add new test for T182338

https://gerrit.wikimedia.org/r/396059

Change 396163 had a related patch set uploaded (by Arlolra; owner: Arlolra):
[mediawiki/services/parsoid@master] T182338: Abort on invalid chars in interwiki links

https://gerrit.wikimedia.org/r/396163

Arlolra triaged this task as Normal priority.Dec 7 2017, 10:03 PM

Change 396163 merged by jenkins-bot:
[mediawiki/services/parsoid@master] T182338: Abort on invalid chars in interwiki links

https://gerrit.wikimedia.org/r/396163

Arlolra closed this task as Resolved.Dec 7 2017, 10:36 PM
Arlolra claimed this task.