https://bugzilla.wikimedia.org/show_bug.cgi?id=53658
Web browser: ---
Bug ID: 53658
Summary: wfEscapeWikiText is inadequate
Product: MediaWiki
Version: 1.22-git
Hardware: All
URL: https://en.wikipedia.org/w/index.php?title=Special%3AS
earch&profile=all&search=%0D;a%0D:ISBN%09978-3-16-1484
10-0%0D%20a&fulltext=Search
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Parser
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
Created attachment 13209
--> https://bugzilla.wikimedia.org/attachment.cgi?id=13209&action=edit
screenshot
wfEscapeWikiText does not escape enough characters, allowing undesirable
formatting through in certain cases.
To reproduce, open the following URL. This is a search for
"__TOC__ OR<CR>;a<CR>ISBN<TAB>978-3-16-148410-0<CR> a".
https://en.wikipedia.org/w/index.php?title=Special%3ASearch&profile=all&search=__TOC__%20OR%0D;a%0D:ISBN%09978-3-16-148410-0%0D%20a&fulltext=Search
Expected Result:
The text "Results 1–6 of 6 for " (from message 'showingresultsheader') is
followed by "__TOC__ OR ;a ISBN 978-3-16-148410-0 a", with no special
formatting or linking beyond the bolding applied by the message text.
Actual Result:
__TOC__ disappears. The first "a" appears on the next line. The ISBN is
indented (as a definition in a definition list) and linked to
Special:BookSources. The second "a" appears as monospaced text inside a pre
element.
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l