Last modified: 2013-10-15 12:12:09 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 T56904, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54904 - {{#expr:}}/{{#ifexpr:}} incorrectly handles strings with multiple decimal points
{{#expr:}}/{{#ifexpr:}} incorrectly handles strings with multiple decimal points
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
ParserFunctions (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-02 23:41 UTC by Danny B.
Modified: 2013-10-15 12:12 UTC (History)
0 users

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


Attachments

Description Danny B. 2013-10-02 23:41:38 UTC
{{#expr:}}/{{#ifexpr:}} incorrectly handles strings with multiple decimal points

Example:

* {{#expr:02.10.2013}} -> 2.1
* {{#ifexpr:02.10.2013|t|f}} -> t

Both should trigger error obviously.
Comment 1 Brion Vibber 2013-10-03 15:38:19 UTC
Why should they trigger errors, exactly? Is there an input format specification we can match behavior to?
Comment 2 Danny B. 2013-10-03 21:18:40 UTC
https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23expr

"02.10.2013" is not valid mathematical expression -> that's why it should trigger error

02.10 is OK
10.2013 is obviously OK

but 2+ decimal points obviously can't be OK

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


Navigation
Links