Contacts: Move debug logging of $_POST to after access checks

remotes/origin/stable4
Bart Visscher 15 years ago
parent 6eb1427ac0
commit 39f342d595
  1. 7
      apps/contacts/ajax/addcontact.php

@ -30,15 +30,16 @@ function bailOut($msg) {
function debug($msg) {
OC_Log::write('contacts','ajax/addcontact.php: '.$msg, OC_Log::DEBUG);
}
foreach ($_POST as $key=>$element) {
debug('_POST: '.$key.'=>'.$element);
}
// Check if we are a user
OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('contacts');
$l=new OC_L10N('contacts');
foreach ($_POST as $key=>$element) {
debug('_POST: '.$key.'=>'.$element);
}
$aid = $_POST['aid'];
OC_Contacts_App::getAddressbook( $aid ); // is owner access check

Loading…
Cancel
Save