Update codebase

This commit is contained in:
Hamza-Ayed
2026-08-09 16:56:13 +03:00
parent 95e2e4f35d
commit b64debaa88
1058 changed files with 164327 additions and 113928 deletions
+11
View File
@@ -184,6 +184,17 @@ function authenticateJWT(bool $isReg = false): object
function filterRequest($requestname, $type = 'string') {
// If $_POST is empty, try parsing JSON from php://input
if (empty($_POST)) {
$json = file_get_contents('php://input');
if (!empty($json)) {
$data = json_decode($json, true);
if (is_array($data)) {
$_POST = $data;
}
}
}
if (isset($_POST[$requestname]) && !empty($_POST[$requestname])) {
$value = trim($_POST[$requestname]);
// Remove any control characters