Last modified: 2011-04-14 15:12:12 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 T20794, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 18794 - Strange urlencode error
Strange urlencode error
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
ParserFunctions (Other open bugs)
unspecified
All All
: Low normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-14 01:34 UTC by FT2
Modified: 2011-04-14 15:12 UTC (History)
3 users (show)

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


Attachments

Description FT2 2009-05-14 01:34:57 UTC
I'm not sure where this stems from. In fact Im not sure if it's mediawiki, parser functions or just a "you shouldn't be trying to do that".

Basically I wanted a system message to include a link to the delete log of the relevant article. The pagename is provided in "$1", and I wanted the system message to include "[{{urlencode:$1}} $1]" as a link. Poor coding perhaps, but as the message allowed piped links I had hopes it might work.

The revision of the system message is here: 
http://en.wikipedia.org/w/index.php?title=MediaWiki:Missing-article&oldid=289791845

I then clicked the link for an oversighted revision <http://en.wikipedia.org/w/index.php?diff=289767780&oldid=289682224> to see if it worked. 

The piping worked, as in, the resulting error gave the correct (piped) display name. But the URL it hyperlinked to was <http://en.wikipedia.org/w/index.php?title=Special:Log&type=delete&page=%7FUNIQ2013e14f31611b6d-nowiki-00000001-QINU%7F>


Something's not quite right there....
Comment 1 FT2 2009-05-14 02:08:05 UTC
Updated permalink for the relevant parser code: 
http://en.wikipedia.org/w/index.php?title=MediaWiki:Missing-article&oldid=289795680
Comment 2 MZMcBride 2009-05-14 03:11:36 UTC
<TimStarling> you can't urlencode a URL
<TimStarling> oh right, you're skipping the rest of the URL
<TimStarling> good fun
<TimStarling> presumably the article name is wrapped in <nowiki>
<TimStarling> I seem to remember that was done in a few messages
Comment 3 FT2 2009-05-14 03:30:12 UTC
Noting the same error occurs for:
[{{fullurl:Special:Log|type=delete&page={{urlencode:$1}}}} blah]
as well. 

The piped text is fine, the hyperlink points to:
http://en.wikipedia.org/w/index.php?title=Special:Log&type=delete&page=%7FUNIQ47869a6929f0a2d4-nowiki-00000001-QINU%7F
Comment 4 FT2 2009-05-14 03:31:55 UTC
{{fullurl:Special:Log|type=delete&page=$1}} didn't work either

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


Navigation
Links