From b2f4b8822b254d48f5ed3669be27b74187f36dfd Mon Sep 17 00:00:00 2001 From: Timotei Date: Fri, 6 Sep 2024 15:17:39 +0300 Subject: [PATCH] Further improvement --- src/debug2.cls.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug2.cls.php b/src/debug2.cls.php index 55c0b1e6a..6ab317e3c 100644 --- a/src/debug2.cls.php +++ b/src/debug2.cls.php @@ -89,7 +89,7 @@ public static function FilePath($type) if ($type == 'debug.purge') { $type = 'purge'; } - $rand = defined('AUTH_KEY') ? substr(md5(substr(AUTH_KEY, -16)), -16) : ''; + $rand = substr(md5(substr(defined('AUTH_KEY') ? AUTH_KEY : md5(__FILE__), -16)), -16); return $type . $rand . '.log'; }