Skip to content

Commit

Permalink
Merge pull request #5932 from SoftCreatR/bugfix/log-recursive
Browse files Browse the repository at this point in the history
Disable log directory recursion
  • Loading branch information
dtdesign authored Jun 8, 2024
2 parents 2fa0ae0 + c45be01 commit e7d6cbc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function readData()
RegistryHandler::getInstance()->set('com.woltlab.wcf', 'exceptionMailerTimestamp', TIME_NOW);

$fileNameRegex = new Regex('(?:^|/)\d{4}-\d{2}-\d{2}\.txt$');
$this->logFiles = DirectoryUtil::getInstance(WCF_DIR . 'log/')->getFiles(\SORT_DESC, $fileNameRegex);
$this->logFiles = DirectoryUtil::getInstance(WCF_DIR . 'log/', false)->getFiles(\SORT_DESC, $fileNameRegex);

if ($this->exceptionID) {
// search the appropriate file
Expand Down

0 comments on commit e7d6cbc

Please sign in to comment.