Page MenuHomePhabricator

#set does not handle strings with underscores
Closed, DeclinedPublic

Description

Author: mitchell_neill

Description:
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.


Version: unspecified
Severity: normal

Details

Reference
bz34575

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:16 AM
bzimport set Reference to bz34575.
bzimport added a subscriber: Unknown Object (MLST).

Changing component to "Semantic MediaWiki".

mitchell_neill wrote:

I have raised this enchantment request Bug 34613 - Pipe Escape enhancement.

Perhaps #set could benefit in the same way.

Cheers
Neill.

Aklapper subscribed.

The Semantic MediaWiki developers requested in https://phabricator.wikimedia.org/T64114 to move their task tracking to https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues and to close remaining tasks in Wikimedia Phabricator. If you still face the problem reported in this task in a supported version of SMW, please feel free to transfer your report to https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues . We are sorry for the inconvenience.