Merge pull request #8259 from owncloud/backport-7682-6

Backport #7682
remotes/origin/stable6
Lukas Reschke 13 years ago
commit a7bc716b95
  1. 3
      lib/private/eventsource.php

@ -63,8 +63,9 @@ class OC_EventSource{
$type=null;
}
if($this->fallback) {
$fallBackId = OC_Util::sanitizeHTML($this->fallBackId);
$response='<script type="text/javascript">window.parent.OC.EventSource.fallBackCallBack('
.$this->fallBackId.',"'.$type.'",'.json_encode($data).')</script>'.PHP_EOL;
.$fallBackId.',"'.$type.'",'.json_encode($data).')</script>'.PHP_EOL;
echo $response;
}else{
if($type) {

Loading…
Cancel
Save