diff --git a/ykval-verify.php b/ykval-verify.php index 45a4a70..cfacbe6 100644 --- a/ykval-verify.php +++ b/ykval-verify.php @@ -236,7 +236,9 @@ $myLog->log(LOG_DEBUG, 'Client data:', $cd); /** * Check client signature */ -$apiKey = base64_decode($cd['secret']); +$apiKey = $cd['secret']; +$apiKey = base64_decode($apiKey); +unset($cd); if ($h != '') {