Fix rawurldecode
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
97668add7e
commit
41d6a71d2f
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue