OCP\JSON::error(array("data" => array( "message" => "Empty Filename" )));
exit();
}
-if(strpos($filename,'/')!==false) {
+if(strpos($filename, '/')!==false) {
OCP\JSON::error(array("data" => array( "message" => "Invalid Filename" )));
exit();
}
}
}
-if($source){
+if($source) {
if(substr($source, 0, 8)!='https://' and substr($source, 0, 7)!='http://') {
OCP\JSON::error(array("data" => array( "message" => "Not a valid source" )));
exit();
exit;
}
if(isset($eventSource)) {
- $eventSource->send('success',false);
+ $eventSource->send('success', false);
} else {
exit;
}