Last modified: 2014-02-01 10:27:38 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 T62336, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60336 - Incorrect treatment of non-basic latin characters in ol and ul formats of {{#ask:}}
Incorrect treatment of non-basic latin characters in ol and ul formats of {{#...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
REL1_22-branch
All All
: Unprioritized critical (vote)
: ---
Assigned To: Nobody - You can work on this!
: newphp, utf8
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-22 13:07 UTC by Alexander Mashin
Modified: 2014-02-01 10:27 UTC (History)
5 users (show)

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


Attachments

Description Alexander Mashin 2014-01-22 13:07:43 UTC
In SMW 1.9 under MW 1.22, SemanticMediaWiki/includes/queryprinters/ListResultPrinter.php has $sortKey{0} rather than mb_substr ($sortKey, 0, 1).

As a result, when a call of {{#ask:}} parser function with format=ol/ul returns, among others, a page that has a multibyte Unicode character in its title, the attribute data-sortkey of the corresponding list item is malformed.

Most probably, this causes {{#ask:}} breaking out of the first parametre of other parser functions, like {{#if:}} or {{#len:}}.

The example is here: http://semantic-mediawiki.org/wiki/User:Alex_Mashin.

I think, this is a critical bug that blocks upgrade of both SMW and MW (to 1.22.1, due to broken backward compability) in any copmplex SMW project that uses {{#ask:}} combined with other parser functions.
Comment 1 Alexander Mashin 2014-01-22 13:10:42 UTC
in line 334 of SemanticMediaWiki/includes/queryprinters/ListResultPrinter.php.
Comment 3 MWJames 2014-02-01 10:27:38 UTC
Merged and will be deployed with 1.9.0.3.

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


Navigation
Links