diff --git a/index.php b/index.php index 399d757..5a93fa8 100644 --- a/index.php +++ b/index.php @@ -400,7 +400,12 @@ switch (true) { exit; case preg_match('/^\/ticket\.php/', $requestPath) && isset($_GET['id']): - header("Location: /ticket/" . $_GET['id']); + $legacyId = (string)$_GET['id']; + if (ctype_digit($legacyId) && (int)$legacyId > 0) { + header("Location: /ticket/" . $legacyId); + } else { + header("Location: /"); + } exit; default: