fix: replace custom base64_encode function with native PHP base64_encode in SQL queries
This commit is contained in:
@@ -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
|
||||
";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user