1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-30 19:52:17 +01:00

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

This commit is contained in:
Bart Visscher 2012-02-12 15:58:55 +01:00
parent 670df9a5fe
commit 217a5a2aff

View File

@ -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