https://bugzilla.wikimedia.org/show_bug.cgi?id=19828
Summary: Invalid chars in the output
Product: MediaWiki
Version: 1.15.1
Platform: All
URL: http://wiki.guildwars.com/api.php?action=query&prop=revi
sions&titles=Game link:Skill
2898&rvprop=content&format=php
OS/Version: All
Status: NEW
Severity: normal
Priority: Normal
Component: API
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected]
Hi, in some case, there's invalid chars in the output. The following query show
that :
http://wiki.guildwars.com/api.php?action=query&prop=revisions&titles=Game
link:Skill 2898&rvprop=content&format=php
In "trunk/phase3/includes/Title.php" there's a code snippet which cleans these
chars :
# Strip Unicode bidi override characters.
# Sometimes they slip into cut-n-pasted page titles, where the
# override chars get included in list displays.
$dbkey = preg_replace( '/\xE2\x80[\x8E\x8F\xAA-\xAE]/S', '', $dbkey );
When I get results from the API, I have to clean the content with this regex
before using it (and it works).
I don't know if this bug come from the API or the MediaWiki core code.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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