Last modified: 2014-02-12 23:38:04 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 T36575, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 34575 - #set does not handle strings with underscores
#set does not handle strings with underscores
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-21 22:07 UTC by Neill Mitchell
Modified: 2014-02-12 23:38 UTC (History)
3 users (show)

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


Attachments

Description Neill Mitchell 2012-02-21 22:07:57 UTC
Hi.

I have the following in a template:

{{#set:Open Link=[[{{PAGENAME}}|{{{from}}} - {{{subject}}} - 
{{#sub:{{{date}}}|5|20}}]]}}

If the page name has an underscore in it e.g. joe_bloggs@hotmail.com, 
then the #set completely fails. The Open Link string type property is 
not set at all. Not even the {{{from}}} - {{{subject}}} - 
{{#sub:{{{date}}}|5|20}}]]} part gets set.

In fact, if there is an underscore anywhere in the #set then it totally fails.

Is there a way round this? Surely a #set on a string property should 
allow all valid string characters.

Thanks
Neill.
Comment 1 Yaron Koren 2012-02-21 22:41:59 UTC
Changing component to "Semantic MediaWiki".
Comment 2 Neill Mitchell 2012-02-23 15:25:40 UTC
I have raised this enchantment request Bug 34613 - Pipe Escape enhancement.

Perhaps #set could benefit in the same way.

Cheers
Neill.

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


Navigation
Links