From 7ec1125b3f576f407085bda3de90d232bf20ed75 Mon Sep 17 00:00:00 2001 From: netkas Date: Wed, 12 Mar 2025 13:19:45 -0400 Subject: [PATCH] Refactor VerificationAnswerImageCaptcha to ensure answer parameter is cast to string before processing https://github.com/nosial/Socialbox-PHP/issues/75 --- .../Verification/VerificationAnswerImageCaptcha.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Socialbox/Classes/StandardMethods/Verification/VerificationAnswerImageCaptcha.php b/src/Socialbox/Classes/StandardMethods/Verification/VerificationAnswerImageCaptcha.php index c6a835b..1d3d9a7 100644 --- a/src/Socialbox/Classes/StandardMethods/Verification/VerificationAnswerImageCaptcha.php +++ b/src/Socialbox/Classes/StandardMethods/Verification/VerificationAnswerImageCaptcha.php @@ -42,7 +42,7 @@ try { - $result = CaptchaManager::answerCaptcha($session->getPeerUuid(), $rpcRequest->getParameter('answer')); + $result = CaptchaManager::answerCaptcha($session->getPeerUuid(), (string)$rpcRequest->getParameter('answer')); if($result) {