summaryrefslogtreecommitdiffstats
path: root/core/js/eventsource.js
diff options
context:
space:
mode:
authorChristian Reiner <arkascha@balder.site>2012-09-28 13:30:44 +0200
committerChristian Reiner <arkascha@balder.site>2012-09-28 13:30:44 +0200
commit743826bbf34b82b92371cf7e9b0478897188c046 (patch)
tree4bef4f89d23e82698e3a2bdca39841e1ce3e737a /core/js/eventsource.js
parenta7292e897a70a2f7e79f61396d4888cb694f0860 (diff)
downloadnextcloud-server-743826bbf34b82b92371cf7e9b0478897188c046.tar.gz
nextcloud-server-743826bbf34b82b92371cf7e9b0478897188c046.zip
Reimplementation of CSRF protection including autorefresh
Diffstat (limited to 'core/js/eventsource.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 e3ad7e3a671..45c63715a7e 100644
--- a/core/js/eventsource.js
+++ b/core/js/eventsource.js
@@ -40,7 +40,7 @@ OC.EventSource=function(src,data){
dataStr+=name+'='+encodeURIComponent(data[name])+'&';
}
}
- dataStr+='requesttoken='+OC.EventSource.requesttoken;
+ dataStr+='requesttoken='+OC.Request.Token;
if(!this.useFallBack && typeof EventSource !='undefined'){
this.source=new EventSource(src+'?'+dataStr);
this.source.onmessage=function(e){