From 30e534c702f9df911163028927ade61a184653d9 Mon Sep 17 00:00:00 2001 From: flashwave Date: Mon, 18 Mar 2019 21:57:50 +0100 Subject: [PATCH] Added request encoding check. --- misuzu.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/misuzu.php b/misuzu.php index 2733c280..2a4846b0 100644 --- a/misuzu.php +++ b/misuzu.php @@ -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'); }