fix: remove redundant clientId variable in SQL insert statement and use SHA-256 hash for security
This commit is contained in:
@@ -74,7 +74,6 @@ class CounterServer extends IPSModule
|
|||||||
" . $this->esc($projectId) . "',
|
" . $this->esc($projectId) . "',
|
||||||
'" . $this->esc($counterId) . "',
|
'" . $this->esc($counterId) . "',
|
||||||
'" . hash('sha256', $projectId.$clientId . '_' . $counterId) . "',
|
'" . hash('sha256', $projectId.$clientId . '_' . $counterId) . "',
|
||||||
|
|
||||||
'" . $this->esc($clientId) . "',
|
'" . $this->esc($clientId) . "',
|
||||||
'" . $this->esc($clientName) . "',
|
'" . $this->esc($clientName) . "',
|
||||||
'" . $this->esc($type) . "',
|
'" . $this->esc($type) . "',
|
||||||
|
|||||||
Reference in New Issue
Block a user