From e89833f20e43c9041f4ee859de30ba3232fef963 Mon Sep 17 00:00:00 2001 From: netkas Date: Wed, 12 Mar 2025 13:29:43 -0400 Subject: [PATCH] Refactor VerificationGetImageCaptcha to update comment on data URI scheme for captcha image encoding https://github.com/nosial/Socialbox-PHP/issues/76 --- .../Verification/VerificationGetImageCaptcha.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Socialbox/Classes/StandardMethods/Verification/VerificationGetImageCaptcha.php b/src/Socialbox/Classes/StandardMethods/Verification/VerificationGetImageCaptcha.php index a741332..8295f49 100644 --- a/src/Socialbox/Classes/StandardMethods/Verification/VerificationGetImageCaptcha.php +++ b/src/Socialbox/Classes/StandardMethods/Verification/VerificationGetImageCaptcha.php @@ -65,7 +65,7 @@ // Build the captcha // Returns HTML base64 encoded image of the captcha - // Important note: Must always be HTML-BASE64 which means it must be prefixed with `data:image/jpeg;base64,` + // Important note: Must always be data URI scheme eg; data:content/type;base64, return $rpcRequest->produceResponse(new ImageCaptchaVerification([ 'expires' => $captchaRecord->getExpires(), 'content' => (new CaptchaBuilder($answer))->build()->inline()