Index: trunk/phase3/resources/mediawiki.util/mediawiki.util.js |
— | — | @@ -114,7 +114,7 @@ |
115 | 115 | */ |
116 | 116 | 'getParamValue' : function( param, url ) { |
117 | 117 | url = url ? url : document.location.href; |
118 | | - var re = new RegExp('[^#]*[&?]' + param + '=([^&#]*)'); // Get last match, stop at hash |
| 118 | + var re = new RegExp('[^#]*[&?]' + param.escapeRE() + '=([^&#]*)'); // Get last match, stop at hash |
119 | 119 | var m = re.exec(url); |
120 | 120 | if (m && m.length > 1) { |
121 | 121 | return decodeURIComponent(m[1]); |