Added request encoding check.
This commit is contained in:
parent
1ce31f86c7
commit
30e534c702
1 changed files with 6 additions and 0 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue