We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af0dba3 commit c0553e5Copy full SHA for c0553e5
src/Request.php
@@ -103,9 +103,11 @@ public static function input(bool $safeData = true)
103
$d = $data;
104
$data = [];
105
106
- foreach (explode('&', $d) as $chunk) {
107
- $param = explode('=', $chunk);
108
- $data[$param[0]] = urldecode($param[1]);
+ if ($d) {
+ foreach (explode('&', $d) as $chunk) {
+ $param = explode('=', $chunk);
109
+ $data[$param[0]] = urldecode($param[1]);
110
+ }
111
}
112
} else if (strpos($contentType, 'application/json') !== 0 && strpos($contentType, 'multipart/form-data') !== 0) {
113
$safeData = false;
0 commit comments