mediawiki-extensions-Discus.../includes
Bartosz Dziewoński 2d3fe47ac1 Fix parsing localised digits in PHP discussion parser
The PHP code incorrectly assumed that the digits are single-byte in
UTF-8, which is never the case (except for 0-9).

The JS code worked correctly because it uses UTF-16 strings, so the
bug would only affect non-BMP digits there. This was noted in a TODO
comment, but we overlooked it when reimplementing in PHP.

Instead of a string of 10 characters, use an array of 10
single-character strings.

Bug: T261706
Change-Id: Ic5421382474c88f003424799c53ff473d99cce92
2020-09-01 01:50:33 +02:00
..
ApiDiscussionTools.php Re-apply new reply API patches (again) 2020-08-19 20:05:42 +00:00
ApiDiscussionToolsEdit.php Merge "Don't trust RESTBase to give us the correct revision" 2020-08-26 20:27:22 +00:00
CommentItem.php Refactor CommentParser 2020-07-20 23:38:10 +01:00
CommentModifier.php Skip to the end of the paragraph in the parser, not modifier 2020-08-20 19:35:55 +00:00
CommentParser.php Fix parsing localised digits in PHP discussion parser 2020-09-01 01:50:33 +02:00
CommentUtils.php Skip to the end of the paragraph in the parser, not modifier 2020-08-20 19:35:55 +00:00
Data.php Fix parsing localised digits in PHP discussion parser 2020-09-01 01:50:33 +02:00
HeadingItem.php Improve ThreadItem documentation 2020-06-26 14:56:19 +02:00
Hooks.php Use $wgLocaltimezone global instead of request context 2020-06-17 23:14:13 +02:00
ImmutableRange.php Remove various phan suppressions and fix issues 2020-06-12 20:35:59 +01:00
NodeFilter.php CommentParser.php: Use tree walking instead of XPath 2020-07-15 16:40:50 +00:00
ThreadItem.php Merge "Fix indentation level when replying to comments with mixed indentation" 2020-08-10 22:27:44 +00:00
TreeWalker.php CommentParser.php: Use tree walking instead of XPath 2020-07-15 16:40:50 +00:00