summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-02-16 20:28:30 +0100
committerLukas Reschke <lukas@owncloud.com>2015-02-16 20:28:30 +0100
commit912a536c17b8ee6bcd53f9b9f6fb0115387c316e (patch)
tree1de2c164f9005b2cfa2f406cd3312aab221ff4ab /core/js
parent7f624188a77534856ecd53ac1d303ce5358e681e (diff)
downloadnextcloud-server-912a536c17b8ee6bcd53f9b9f6fb0115387c316e.tar.gz
nextcloud-server-912a536c17b8ee6bcd53f9b9f6fb0115387c316e.zip
Encode requesttoken
One cannot make any assumptions about the requesttoken content. Thus we need to encode it.
Diffstat (limited to 'core/js')
-rw-r--r--core/js/eventsource.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/eventsource.js b/core/js/eventsource.js
index 6f23cebb685..d1cdfda485e 100644
--- a/core/js/eventsource.js
+++ b/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) {