mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-06-20 06:50:20 +00:00
Addressed comments made by @puck42
This commit is contained in:
parent
c7eca6dd4a
commit
08404a55c0
@ -107,7 +107,7 @@ function verifyCsrf($csrf_token) {
|
||||
return hash_equals($current_csrf, $csrf_token);
|
||||
}
|
||||
|
||||
return false;
|
||||
return $current_csrf === $csrf_token;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -245,7 +245,7 @@ function principal_editor() {
|
||||
$c->messages[] = i18n("Updating Principal record.");
|
||||
}
|
||||
$editor->Write();
|
||||
if ( $_POST['type_id'] != 3 && $editor->IsCreate() ) {
|
||||
if ( $_POST['type_id'] != 3 && $editor->IsCreate() ) {
|
||||
/** We only add the default calendar if it isn't a group, and this is a create action */
|
||||
require_once('auth-functions.php');
|
||||
CreateHomeCollections($editor->Value('username'));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user