From: Robin Appelman Date: Sat, 31 Mar 2012 14:40:42 +0000 (+0200) Subject: fix eventsource for ie X-Git-Tag: v4.0.0beta~392^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2f68b084919437013cc6d977c0f077e541cf83f9;p=nextcloud-server.git fix eventsource for ie --- diff --git a/core/js/eventsource.js b/core/js/eventsource.js index 34bce60c24a..08259e02cae 100644 --- a/core/js/eventsource.js +++ b/core/js/eventsource.js @@ -68,7 +68,7 @@ OC.EventSource=function(src,data){ OC.EventSource.fallBackSources=[]; OC.EventSource.iframeCount=0;//number of fallback iframes OC.EventSource.fallBackCallBack=function(id,type,data){ - OC.EventSource.fallBackSources[id].fallBackCallBack(type,JSON.parse(data)); + OC.EventSource.fallBackSources[id].fallBackCallBack(type,data); } OC.EventSource.prototype={ typelessListeners:[], diff --git a/lib/eventsource.php b/lib/eventsource.php index dc28616c2dd..cf10660b94c 100644 --- a/lib/eventsource.php +++ b/lib/eventsource.php @@ -59,7 +59,7 @@ class OC_EventSource{ $type=null; } if($this->fallback){ - $response=''.PHP_EOL; + $response=''.PHP_EOL; echo $response; }else{ if($type){