Browse Source

sanitize fallbackId

tags/v7.0.0alpha2
Thomas Müller 10 years ago
parent
commit
7c78368e8b
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      lib/private/eventsource.php

+ 2
- 1
lib/private/eventsource.php View File

@@ -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 . '",' . OCP\JSON::encode($data) . ')</script>' . PHP_EOL;
.$fallBackId.',"' . $type . '",' . OCP\JSON::encode($data) . ')</script>' . PHP_EOL;
echo $response;
}else{
if($type) {

Loading…
Cancel
Save