From 5d0b4afbeaf130bf1623db915f16c5147109a1a4 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 31 May 2025 09:06:01 -0600 Subject: [PATCH] Fix CDR HTTP authentication logic bug (#7382) - Add missing negation operator in http_enabled check - Resolves silent CDR import failures when http_enabled is true - Fixes authentication logic that was preventing valid HTTP CDR imports --- app/xml_cdr/resources/classes/xml_cdr.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index 884225b665..e74a17d8a2 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -1649,7 +1649,7 @@ if (!class_exists('xml_cdr')) { //if http enabled is set to false then deny access if (!defined('STDIN')) { - if ($this->setting->get('cdr', 'http_enabled', false)) { + if (!$this->setting->get('cdr', 'http_enabled', false)) { openlog('FusionPBX', LOG_NDELAY, LOG_AUTH); syslog(LOG_WARNING, '['.$_SERVER['REMOTE_ADDR'].'] XML CDR import default setting http_enabled is not enabled. Line: '.__line__); closelog();