Last modified: 2014-11-18 18:07:11 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T39315, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37315 - Scribunto extension eats page content when a function returns invalid UTF-8
Scribunto extension eats page content when a function returns invalid UTF-8
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Scribunto (Other open bugs)
unspecified
All All
: Unprioritized normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-02 21:03 UTC by Tisza Gergő
Modified: 2014-11-18 18:07 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Tisza Gergő 2012-06-02 21:03:11 UTC
When a Lua script returns invalid UTF-8 (which happens a lot since there is no internal UTF-8 support in Lua so string functions are not binary safe), the page appears completely empty.

Example: http://scribunto.wmflabs.org/index.php/Module_talk:Utf8bug
Comment 1 Brion Vibber 2012-06-15 19:42:12 UTC
Note that it's probably not Scribunto itself that's eating the text, but later parser processing that uses PCRE regular expressions in UTF-8 mode.

May need to stick in a UTF-8 validation step on the output from the Lua side though.
Comment 2 Tim Starling 2012-07-09 03:14:54 UTC
Fixed in I9b9fdb03

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links