Index: trunk/extensions/UploadWizard/resources/mw.Uri.js |
— | — | @@ -161,7 +161,7 @@ |
162 | 162 | uri.query.replace( /(?:^|&)([^&=]*)(?:(=)([^&]*))?/g, function ($0, $1, $2, $3) { |
163 | 163 | if ( $1 ) { |
164 | 164 | var k = mw.Uri.decode( $1 ); |
165 | | - var v = ($2 == '') ? null : mw.Uri.decode( $3 ); |
| 165 | + var v = ( $2 === '' || typeof $2 === 'undefined' ) ? null : mw.Uri.decode( $3 ); |
166 | 166 | if ( typeof q[ k ] === 'string' ) { |
167 | 167 | q[ k ] = [ q[ k ] ]; |
168 | 168 | } |