Skip to content
Snippets Groups Projects
Commit 39f342d5 authored by Bart Visscher's avatar Bart Visscher
Browse files

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

parent 6eb1427a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment