Parcourir la source

sanitize fallbackId

tags/v7.0.0alpha2
Thomas Müller il y a 10 ans
Parent
révision
7c78368e8b
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2
    1
      lib/private/eventsource.php

+ 2
- 1
lib/private/eventsource.php Voir le fichier

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

Chargement…
Annuler
Enregistrer