Encode requesttoken

One cannot make any assumptions about the requesttoken content. Thus we need to encode it.
This commit is contained in:
Lukas Reschke 2015-02-16 20:28:30 +01:00
parent 7f624188a7
commit 912a536c17
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ OC.EventSource=function(src,data){
dataStr+=name+'='+encodeURIComponent(data[name])+'&';
}
}
dataStr+='requesttoken='+oc_requesttoken;
dataStr+='requesttoken='+encodeURIComponent(oc_requesttoken);
if(!this.useFallBack && typeof EventSource !== 'undefined'){
joinChar = '&';
if(src.indexOf('?') === -1) {