diff --git a/include/constants.php b/include/constants.php index 1092eeba..c05ea261 100644 --- a/include/constants.php +++ b/include/constants.php @@ -20,6 +20,7 @@ if (!defined('REQUEST_ID')) { $requestId = $_SERVER['REQUEST_ID']; } else { $prefix = ($_SERVER['SCRIPT_FILENAME'] ?? '') . implode('', $_SERVER['argv'] ?? []); + $prefix = substr(md5($prefix), 0, 5); $requestId = bin2hex(random_bytes(11)) . str_replace('.', '', substr(uniqid($prefix, true), 12, 10)); } define('REQUEST_ID', $requestId);