mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
POST/GET reloaded if empty in ajax
This commit is contained in:
parent
078ab1657f
commit
f84d7a413e
@ -64,6 +64,15 @@ if (isset($config['console_log_enabled']) === true
|
|||||||
ini_set('error_log', 0);
|
ini_set('error_log', 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sometimes input is badly retrieved from caller...
|
||||||
|
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];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Hash login process.
|
// Hash login process.
|
||||||
if (isset($_GET['loginhash']) === true) {
|
if (isset($_GET['loginhash']) === true) {
|
||||||
$loginhash_data = get_parameter('loginhash_data', '');
|
$loginhash_data = get_parameter('loginhash_data', '');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user