From 9012d4a8e2b852af50a0d38ccae00e46d5901adf Mon Sep 17 00:00:00 2001 From: jhartworks Date: Thu, 16 Apr 2026 14:00:29 +0200 Subject: [PATCH] fix: replace custom base64_encode function with native PHP base64_encode in SQL queries --- CounterServer/module.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CounterServer/module.php b/CounterServer/module.php index 86975c5..52907d7 100644 --- a/CounterServer/module.php +++ b/CounterServer/module.php @@ -73,7 +73,7 @@ class CounterServer extends IPSModule ( " . $this->esc($projectId) . "', '" . $this->esc($counterId) . "', - '" . $this->base64_encode($projectId.$clientId . '_' . $counterId). "', + '" . base64_encode($projectId.$clientId . '_' . $counterId). "', '" . $this->esc($clientId) . "', '" . $this->esc($clientName) . "', @@ -95,7 +95,7 @@ class CounterServer extends IPSModule // ---------- GET meter_id ---------- $sqlGet = " SELECT id FROM meter_devices - WHERE meter_uuid = '" . $this->base64_encode($projectId.$clientId . '_' . $counterId). "' + WHERE meter_uuid = '" . base64_encode($projectId.$clientId . '_' . $counterId). "' LIMIT 1 ";