Check that data are not array before base64 decoding
[MAILPOET-3699]
This commit is contained in:
@@ -63,7 +63,7 @@ class Router {
|
||||
}
|
||||
|
||||
public static function decodeRequestData($data) {
|
||||
$data = json_decode(base64_decode($data), true);
|
||||
$data = !is_array($data) ? json_decode(base64_decode($data), true) : [];
|
||||
if (!is_array($data)) {
|
||||
$data = [];
|
||||
}
|
||||
|
Reference in New Issue
Block a user