From c376fd93c6fbf3f9c4bd79bae8875720464c28fa Mon Sep 17 00:00:00 2001 From: slawkens Date: Fri, 30 Jan 2026 22:32:21 +0100 Subject: [PATCH] Return 404 when signature player not found (patching from 1.x) In most cases it was a request for a non existing file --- tools/signature/index.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/signature/index.php b/tools/signature/index.php index e3e33303..b272824d 100644 --- a/tools/signature/index.php +++ b/tools/signature/index.php @@ -33,14 +33,14 @@ if(!isset($_REQUEST['name'])) die('Please enter name as get or post parameter.'); - $name = stripslashes(ucwords(strtolower(trim($_REQUEST['name'])))); $player = new OTS_Player(); - $player->find($name); + $player->find($_REQUEST['name']); if(!$player->isLoaded()) { - header('Content-type: image/png'); - readfile(SIGNATURES_IMAGES.'nocharacter.png'); + //header('Content-type: image/png'); + //readfile(SIGNATURES_IMAGES.'nocharacter.png'); + http_response_code(404); exit; }