* (bug 13342) importScript() generates more consistent URI encoding
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 3 Dec 2008 21:52:40 +0000 (21:52 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 3 Dec 2008 21:52:40 +0000 (21:52 +0000)
commitd5b1ad03c48caaf55fe1fd54a1536d91d66c41ba
treecda4d0946ac75efedc5eb1b1535b411be8bb5cab
parent5fb6da9a1153e946dae748fe113c1798c6dffa5d
* (bug 13342) importScript() generates more consistent URI encoding

Switches order of URL to put title first, and encodes ':' and '/' consistently with MediaWiki general URI encoding.

The current implementation escapes ':' and '/', producing URLs like this:

/trunk/index.php?action=raw&ctype=text/javascript&title=MediaWiki%3ASysop.js

If we're recommending consistent use of importScript() it probably doesn't really matter, but it wouldn't hurt to be self-consistent with how we generate other URLs... of course even with the change to the encoding, the order of the pieces is different.

MediaWiki usually generates URLs with the title component first; also caching options will differ depending on who's generating the URL and when.
RELEASE-NOTES
skins/common/wikibits.js