diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-02-16 20:28:30 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-02-16 20:28:30 +0100 |
commit | 912a536c17b8ee6bcd53f9b9f6fb0115387c316e (patch) | |
tree | 1de2c164f9005b2cfa2f406cd3312aab221ff4ab /core/js | |
parent | 7f624188a77534856ecd53ac1d303ce5358e681e (diff) | |
download | nextcloud-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.js | 2 |
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) { |