diff --git a/themes/bootstrap3/js/common.js b/themes/bootstrap3/js/common.js index 2bab168d847cc9f91aa93ec60a787ab9f8877e02..63cc5a345fcb7c0da1fe9ae5bb530138026ebb82 100644 --- a/themes/bootstrap3/js/common.js +++ b/themes/bootstrap3/js/common.js @@ -50,6 +50,9 @@ function html_entity_decode(string, quote_style) // Turn GET string into array function deparam(url) { + if(!url.match(/\?/)) { + return []; + } var request = {}; var pairs = url.substring(url.indexOf('?') + 1).split('&'); for (var i = 0; i < pairs.length; i++) {