Skip to content
Snippets Groups Projects
Commit 942d5fcf authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Merge pull request #7682 from owncloud/sanitize-fallbackid-master

sanitize fallbackId
parents 8320b8eb 7c78368e
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment