sanitize fallbackId
This commit is contained in:
parent
364e1f852f
commit
7c78368e8b
|
@ -63,8 +63,9 @@ class OC_EventSource{
|
||||||
$type=null;
|
$type=null;
|
||||||
}
|
}
|
||||||
if($this->fallback) {
|
if($this->fallback) {
|
||||||
|
$fallBackId = OC_Util::sanitizeHTML($this->fallBackId);
|
||||||
$response='<script type="text/javascript">window.parent.OC.EventSource.fallBackCallBack('
|
$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;
|
echo $response;
|
||||||
}else{
|
}else{
|
||||||
if($type) {
|
if($type) {
|
||||||
|
|
Loading…
Reference in New Issue