Index: branches/wmf/1.17wmf1/resources/mediawiki.util/mediawiki.util.js |
— | — | @@ -150,7 +150,9 @@ |
151 | 151 | var re = new RegExp( '^[^#]*[&?]' + $.escapeRE( param ) + '=([^&#]*)' ); |
152 | 152 | var m = re.exec( url ); |
153 | 153 | if ( m && m.length > 1 ) { |
154 | | - return decodeURIComponent( m[1] ); |
| 154 | + // Beware that decodeURIComponent is not required to understand '+' |
| 155 | + // by spec, as encodeURIComponent does not produce it. |
| 156 | + return decodeURIComponent( m[1].replace( /\+/g, '%20' ) ); |
155 | 157 | } |
156 | 158 | return null; |
157 | 159 | }, |
Property changes on: branches/wmf/1.17wmf1/resources/mediawiki.util/mediawiki.util.js |
___________________________________________________________________ |
Modified: svn:mergeinfo |
158 | 160 | Merged /trunk/phase3/resources/mediawiki/mediawiki.util.js:r95332,95451 |