apply coding style

remotes/origin/stable45
Thomas Mueller 13 years ago
parent 4c4aa92eef
commit b64229a89e
  1. 4
      apps/files/ajax/newfile.php
  2. 2
      apps/files/ajax/scan.php

@ -25,7 +25,7 @@ if($filename == '') {
OCP\JSON::error(array("data" => array( "message" => "Empty Filename" ))); OCP\JSON::error(array("data" => array( "message" => "Empty Filename" )));
exit(); exit();
} }
if(strpos($filename,'/')!==false) { if(strpos($filename, '/')!==false) {
OCP\JSON::error(array("data" => array( "message" => "Invalid Filename" ))); OCP\JSON::error(array("data" => array( "message" => "Invalid Filename" )));
exit(); exit();
} }
@ -55,7 +55,7 @@ function progress($notification_code, $severity, $message, $message_code, $bytes
} }
} }
if($source){ if($source) {
if(substr($source, 0, 8)!='https://' and substr($source, 0, 7)!='http://') { if(substr($source, 0, 8)!='https://' and substr($source, 0, 7)!='http://') {
OCP\JSON::error(array("data" => array( "message" => "Not a valid source" ))); OCP\JSON::error(array("data" => array( "message" => "Not a valid source" )));
exit(); exit();

@ -36,7 +36,7 @@ if($force or !OC_FileCache::inCache('')) {
exit; exit;
} }
if(isset($eventSource)) { if(isset($eventSource)) {
$eventSource->send('success',false); $eventSource->send('success', false);
} else { } else {
exit; exit;
} }

Loading…
Cancel
Save