POST/GET reloaded if empty in ajax

This commit is contained in:
fbsanchez 2021-02-25 12:09:41 +01:00
parent f84d7a413e
commit 8fcac749f5
1 changed files with 2 additions and 1 deletions

View File

@ -69,7 +69,8 @@ if (empty($_REQUEST) === true) {
$data = explode('&', urldecode(file_get_contents('php://input')));
foreach ($data as $d) {
$r = explode('=', $d, 2);
$_REQUEST[$r[0]] = $r[1];
$_POST[$r[0]] = $r[1];
$_GET[$r[0]] = $r[1];
}
}