Skip to content

Commit

Permalink
Encode demo path as URI. Fixes #4
Browse files Browse the repository at this point in the history
  • Loading branch information
bugdone committed May 8, 2015
1 parent 0e51194 commit 87cc363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/public/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ hsboxApp.filter('mydate', function () {

function watchDemoUrl(path, steamid, tick, highlight) {
return 'steam://rungame/730/' + steamid + '/+playdemo "' +
path + (tick ? '@' + tick : '') + '" ' +
encodeURI(path) + (tick ? '@' + tick : '') + '" ' +
(highlight ? steamid : '');
}

0 comments on commit 87cc363

Please sign in to comment.