Pārlūkot izejas kodu

sanitize fallbackId

tags/v7.0.0alpha2
Thomas Müller pirms 10 gadiem
vecāks
revīzija
7c78368e8b
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2
    1
      lib/private/eventsource.php

+ 2
- 1
lib/private/eventsource.php Parādīt failu

@@ -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) {

Notiek ielāde…
Atcelt
Saglabāt