Last modified: 2011-12-06 02:21:58 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 T30943, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28943 - Ampersand character in preloadtitle urls return Wikimedia errors
Ampersand character in preloadtitle urls return Wikimedia errors
Status: RESOLVED INVALID
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/w/index.php?t...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-12 00:54 UTC by TeleComNasSprVen
Modified: 2011-12-06 02:21 UTC (History)
4 users (show)

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


Attachments

Description TeleComNasSprVen 2011-05-12 00:54:43 UTC
Trying to display an ampersand using %26amp%3B in a url, particularly when it is located in a preloadtitle parameter for index.php, gives a Wikimedia Foundation error: "Error: ERR_ACCESS_DENIED, errno [No Error]" but this method works fine for the %26ndash%3B character.
Comment 1 Bawolff (Brian Wolff) 2011-05-12 01:05:34 UTC
Isn't that block to stop broken bots who don't interpret html entities properly?


I suggest you just don't use & in the preloadtitle. In 99.9999% of circumstances just a plain & will be fine (Actually I can't even think of a single circumstance where this is needed. Just use an &, mediawiki will deal with it fine. If you need to use the & as part of something that'd normally be an entity you can use ).

Changing component to Wikimedia, since this is done on the squid level, and does not appear to be an issue with mediawiki itself.
Comment 2 Derk-Jan Hartman 2011-05-12 08:21:34 UTC
Correct. And & will of course fail in this situation. You would get an empty title

http://en.wikipedia.org/w/index.php?title=Wikipedia:Administrators'%20noticeboard&action=edit&section=new&preloadtitle=&thiswouldbeinterpretedasanewparamnameinsteadofasaparamvalue
Comment 3 Brion Vibber 2011-05-13 10:53:40 UTC
'&' isn't legal in MediaWiki page titles, so.... that shouldn't be a problem. :)

In a URL you should encode & as %26 directly.
Comment 4 Diederik van Liere 2011-12-06 02:21:58 UTC
Issue can be avoided by properly encoding URL.

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


Navigation
Links