Fix rawurldecode
continuous-integration/drone/push Build is failing Details

This commit is contained in:
philipp lang 2023-10-30 22:58:25 +01:00
parent 97668add7e
commit 41d6a71d2f
2 changed files with 3 additions and 3 deletions

View File

@ -49,6 +49,6 @@ class GenerateAction
*/ */
private function payload(ActionRequest $request): array private function payload(ActionRequest $request): array
{ {
return json_decode(urldecode(base64_decode($request->input('payload', ''))), true); return json_decode(rawurldecode(base64_decode($request->input('payload', ''))), true);
} }
} }

View File

@ -33,9 +33,9 @@ class JsonBase64Rule implements Rule
return false; return false;
} }
$decoded = urldecode(base64_decode($value, true)); $decoded = rawurldecode(base64_decode($value, true));
if (base64_encode(urlencode($decoded)) !== $value) { if (base64_encode(rawurlencode($decoded)) !== $value) {
return false; return false;
} }