Skip to content

Commit

Permalink
refs #3813 fixes ie8 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Apr 16, 2013
1 parent b993d27 commit 07d96a0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions plugins/CoreHome/templates/broadcast.js
Expand Up @@ -488,8 +488,11 @@ var broadcast = {

var result = {};
for (var i = 0; i != pairs.length; ++i) {
var pair = pairs[i].split(/=(.+)?/); // split only on first '='
result[pair[0]] = pair[1];
// attn: split with regex has bugs in several browsers such as IE 8
// so we need to split, use the first part as key and rejoin the rest
var pair = pairs[i].split('=');
var key = pair.shift();
result[key] = pair.join('=');
}
return result;
},
Expand Down

0 comments on commit 07d96a0

Please sign in to comment.