Last modified: 2011-04-30 01:16:50 UTC
When building a uri, importScript(page) uses the following call: var uri = wgScript + '?title=' + encodeURIComponent(page.replace(/ /g,'_')).replace('%2F','/').replace('%3A',':') + '&action=raw&ctype=text/javascript'; When applied to a pagename with more than one embedded "/" or ":" this results in an incorrect uri. For example, if page="User:Dnessett%2Fper_book%2FTemplate.js", the result of encodeURIComponent is: User:Dnessett/per_book%2FTemplate.js. The problem is the replace calls do not specify global replacement. The correct call is: encodeURIComponent(page.replace(/ /g,'_')).replace(/%2F/,'/').replace(/%3A/,':').
Already fixed in r50537. Will go live next scap.