Page MenuHomePhabricator

[Bug] Escaping problem when creating an item from search
Closed, DuplicatePublic

Description

I was wondering why sometimes items with funky characters turn up and now I know how to reproduce it:

Looking https://www.wikidata.org/wiki/MediaWiki:Searchmenu-new this part probably causing the problems:

<span class="plainlinks">[{{fullurl:Special:CreateItem|label={{urlencode:$1}}}} create a new item]</span>

Would it be as simple as getting rid of the urlencode or would something else break?

Event Timeline

Multichill raised the priority of this task from to Needs Triage.
Multichill updated the task description. (Show Details)
Multichill added a project: Wikidata.
Multichill subscribed.
Lydia_Pintscher renamed this task from Escaping problem when creating an item from search to [Bug] Escaping problem when creating an item from search.Aug 17 2015, 3:47 PM
Lydia_Pintscher set Security to None.
Lydia_Pintscher moved this task from incoming to ready to go on the Wikidata board.

I can reproduce this issue on Firefox 50.0 on Elementary OS 0.4. I tested on Wikidata (Mediawiki version 1.290).

  1. Enter a search with special characters
  2. Click on "create a new item"
  3. The label field will show the escaping issues