r113361 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113360‎ | r113361 | r113362 >
Date:11:53, 8 March 2012
Author:gwicke
Status:deferred
Tags:
Comment:
Percent-encode spaces in URLs, so that they are recognized as valid URLs later
on.
Modified paths:
  • /trunk/extensions/VisualEditor/modules/parser/mediawiki.parser.environment.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/parser/mediawiki.parser.environment.js
@@ -280,7 +280,7 @@
281281 host = host.replace( /%(?![0-9a-fA-F][0-9a-fA-F])|[#|]/g, function ( m ) {
282282 return encodeURIComponent( m );
283283 } );
284 - path = path.replace( /%(?![0-9a-fA-F][0-9a-fA-F])|[\[\]#|]/g, function ( m ) {
 284+ path = path.replace( /%(?![0-9a-fA-F][0-9a-fA-F])|[ \[\]#|]/g, function ( m ) {
285285 return encodeURIComponent( m );
286286 } );
287287 s = host + path;

Status & tagging log