Fix crons
This commit is contained in:
@@ -24,7 +24,7 @@ if ($config_enable_cron == 0) {
|
||||
}
|
||||
|
||||
// Check Cron Key
|
||||
if ( $argv[1] !== $config_cron_key ) {
|
||||
if ($argv[1] !== $config_cron_key && $_GET['key'] !== $config_cron_key) {
|
||||
exit("Cron Key invalid -- Quitting..");
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ if ($config_ticket_email_parse == 0) {
|
||||
$argv = $_SERVER['argv'];
|
||||
|
||||
// Check Cron Key
|
||||
if ($argv[1] !== $config_cron_key && $_GET['key'] !== $config_cron_key) {
|
||||
if ($argv[1] !== $config_cron_key) {
|
||||
exit("Cron Key invalid -- Quitting..");
|
||||
}
|
||||
|
||||
@@ -344,7 +344,7 @@ function createMailboxFolder($imap, $mailbox, $folderName) {
|
||||
}
|
||||
|
||||
// Initialize IMAP connection
|
||||
$validate_cert = true; // or false based on your configuration
|
||||
$validate_cert = false; // or false based on your configuration
|
||||
|
||||
$imap_encryption = $config_imap_encryption; // e.g., 'ssl', 'tls', or '' (empty string) for none
|
||||
|
||||
@@ -360,7 +360,7 @@ if (!empty($imap_encryption)) {
|
||||
if ($validate_cert) {
|
||||
$mailbox .= '/validate-cert';
|
||||
} else {
|
||||
$mailbox .= '/novalidate-cert';
|
||||
$mailbox .= '/notls/novalidate-cert';
|
||||
}
|
||||
|
||||
$mailbox .= '}';
|
||||
|
||||
Reference in New Issue
Block a user