Browse Source

Encode requesttoken

One cannot make any assumptions about the requesttoken content. Thus we need to encode it.
remotes/origin/log-external-deletes
Lukas Reschke 11 years ago
parent
commit
912a536c17
  1. 2
      core/js/eventsource.js

2
core/js/eventsource.js

@ -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) {

Loading…
Cancel
Save