From: Alexander Ebert Date: Tue, 29 Oct 2013 19:15:56 +0000 (+0100) Subject: Sending HTTP 400 if type is empty/invalid X-Git-Tag: 2.0.0_Beta_11~12 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8b75c9e51864b300e476262e6e6246c871f9a8f6;p=GitHub%2FWoltLab%2FWCF.git Sending HTTP 400 if type is empty/invalid --- diff --git a/wcfsetup/install/files/font/getFont.php b/wcfsetup/install/files/font/getFont.php index 9961622c33..ac9e0b96c9 100644 --- a/wcfsetup/install/files/font/getFont.php +++ b/wcfsetup/install/files/font/getFont.php @@ -42,7 +42,9 @@ if (!empty($_GET['type'])) { die($data); } - die("Invalid type '" . $_GET['type'] . "' given"); + header("HTTP/1.1 400 Bad Request"); + die("Invalid type '" . htmlentities($_GET['type']) . "' given"); } +header("HTTP/1.1 400 Bad Request"); die("Missing type parameter");