diff --git a/cron_certificate_refresher.php b/cron_certificate_refresher.php index e7ffb1c4..ffe5e6e0 100644 --- a/cron_certificate_refresher.php +++ b/cron_certificate_refresher.php @@ -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.."); } diff --git a/cron_ticket_email_parser.php b/cron_ticket_email_parser.php index d185e63f..35338998 100644 --- a/cron_ticket_email_parser.php +++ b/cron_ticket_email_parser.php @@ -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 .= '}';