Added request encoding check.

This commit is contained in:
flash 2019-03-18 21:57:50 +01:00
parent 1ce31f86c7
commit 30e534c702

View file

@ -364,6 +364,12 @@ MIG;
}
}
} else {
if (!mb_check_encoding()) {
http_response_code(415);
echo 'Invalid request encoding.';
exit;
}
if (!MSZ_DEBUG) {
ob_start('ob_gzhandler');
}