Skip to content

Commit

Permalink
Merge pull request #3116 from greenwizard88/master
Browse files Browse the repository at this point in the history
Fix for #2886: Web throttle doesn't like roster entries with "&"
  • Loading branch information
rhwood committed Feb 21, 2017
2 parents 878f435 + 845357a commit ca36c37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/js/webThrottle.js
Expand Up @@ -1700,7 +1700,7 @@ var throttleShow = function(e, locoId) {
if (!isLeftButton(e)) return;
e.preventDefault();
e.stopImmediatePropagation();
var url = document.URL.split('?')[0] + '?loconame=' + encodeURI(locoId);
var url = document.URL.split('?')[0] + '?loconame=' + encodeURIComponent(locoId);
if ($toFrame) {
if (addToFrameList(url + '&inframe')) window.open(document.URL.split('?')[0], $pageInFrame ? '_top' : '_self');
} else window.open(url, url);
Expand Down

0 comments on commit ca36c37

Please sign in to comment.