encode sri when sending in URL

pull/4566/head
Thibault Duplessis 2018-08-25 00:01:18 +02:00
parent 18efb42c6f
commit 942ecda593
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ export function nowPlaying() {
export function anonPoolSeek(pool) {
return $.ajax({
method: 'POST',
url: '/setup/hook/' + window.lichess.StrongSocket.sri,
url: '/setup/hook/' + encodeURIComponent(window.lichess.StrongSocket.sri),
data: {
variant: 1,
timeMode: 1,