Skip to content

Commit

Permalink
Further improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Tymotey committed Sep 6, 2024
1 parent 5c63437 commit b2f4b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/debug2.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

Expand Down

0 comments on commit b2f4b88

Please sign in to comment.