diff --git a/apps/contacts/ajax/savecrop.php b/apps/contacts/ajax/savecrop.php index 263361bafc1..a5517c5d843 100644 --- a/apps/contacts/ajax/savecrop.php +++ b/apps/contacts/ajax/savecrop.php @@ -27,25 +27,12 @@ function bailOut($msg) { OCP\Util::writeLog('contacts','ajax/savecrop.php: '.$msg, OCP\Util::DEBUG); exit(); } -function debug($msg) { - OCP\Util::writeLog('contacts','ajax/savecrop.php: '.$msg, OCP\Util::DEBUG); -} // Check if we are a user OCP\JSON::checkLoggedIn(); OCP\JSON::checkAppEnabled('contacts'); -foreach($_POST as $key=>$value) { - debug('POST: '.$key.'=>'.$value); -} -foreach($_GET as $key=>$value) { - debug('GET: '.$key.'=>'.$value); -} OCP\JSON::callCheck(); -// foreach ($_POST as $key=>$element) { -// OCP\Util::writeLog('contacts','ajax/savecrop.php: '.$key.'=>'.$element, OCP\Util::DEBUG); -// } - // Firefox and Konqueror tries to download application/json for me. --Arthur OCP\JSON::setContentTypeHeader('text/plain'); diff --git a/apps/contacts/ajax/uploadphoto.php b/apps/contacts/ajax/uploadphoto.php index 2dc93362a14..52e25e4a335 100644 --- a/apps/contacts/ajax/uploadphoto.php +++ b/apps/contacts/ajax/uploadphoto.php @@ -30,12 +30,6 @@ function debug($msg) { OCP\JSON::setContentTypeHeader('text/plain'); OCP\JSON::checkLoggedIn(); OCP\JSON::checkAppEnabled('contacts'); -foreach($_POST as $key=>$value) { - debug('POST: '.$key.'=>'.$value); -} -foreach($_GET as $key=>$value) { - debug('GET: '.$key.'=>'.$value); -} OCP\JSON::callCheck(); // If it is a Drag'n'Drop transfer it's handled here. @@ -50,7 +44,6 @@ if ($fn) { $id = $_GET['id']; $tmpfname = tempnam(get_temp_dir(), 'occOrig'); file_put_contents($tmpfname, file_get_contents('php://input')); - debug($tmpfname.' uploaded'); $image = new OC_Image(); if($image->loadFromFile($tmpfname)) { if($image->width() > 400 || $image->height() > 400) {