https://bugzilla.wikimedia.org/show_bug.cgi?id=69152
Bug ID: 69152
Summary: Parsoid adds garbled link parameter to wiki text of
[[Image with accents]]
Product: Parsoid
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Web browser: ---
Mobile Platform: ---
Log in to a wiki, visit a Flow board and create a post containing the wikitext
[[File:Şirince_(doyler79).jpg|thumb]]
when you edit the wiki text, note it has become
[[File:Şirince_(doyler79).jpg|thumb|link=File:%C5%9Eirince_(doyler79).jpg]]
It only happens if the file name has an accented character. This sounds like an
edge case of bug 49844, which was fixed. If I run the wikitext on line 2
through the round-trip parser http://parsoid.wmflabs.org/_rtform/ , the link
parameter doesn't appear. It's in the HTML generated by
http://parsoid.wmflabs.org/_wikitext/ , as a data-parsoid parameter:
<figure ... data-parsoid='{"optList":[{...
,{"ck":"link","ak":"link=File:%C5%9Eirince_(doyler79).jpg"}], ...] }
I don't think that percent encoding is needed, the link should only be
URL-encoded when put in a URL. For what it's worth the wikitext from Parsoid
doesn't work if you copy it to a regular page,
"link=File:%C5%9Eirince_(doyler79).jpg" appears as the caption.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l