summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2014-04-18 11:36:59 +0200
committerLukas Reschke <lukas@statuscode.ch>2014-04-18 11:36:59 +0200
commita7bc716b95e5a1a07ef2756d56e4e9f7915b2fcd (patch)
tree6d85fc61b04f3db5a80f402a693beed9020216f8
parentc4d4065dc2ab6f1533d668de47de02a3145f978b (diff)
parenta30040411c0068703b781099e64df2b299242117 (diff)
downloadnextcloud-server-a7bc716b95e5a1a07ef2756d56e4e9f7915b2fcd.tar.gz
nextcloud-server-a7bc716b95e5a1a07ef2756d56e4e9f7915b2fcd.zip
Merge pull request #8259 from owncloud/backport-7682-6
Backport #7682
-rw-r--r--lib/private/eventsource.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/eventsource.php b/lib/private/eventsource.php
index a83084d9251..5080b8d066f 100644
--- a/lib/private/eventsource.php
+++ b/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) {