From 584d633164a6eedb1b6fbbde9f511a00d0e7e04b Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 6 Jul 2015 19:43:42 +0200 Subject: [PATCH] Fixed filename regex in ExceptionLogViewPage --- .../install/files/lib/acp/page/ExceptionLogViewPage.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/acp/page/ExceptionLogViewPage.class.php b/wcfsetup/install/files/lib/acp/page/ExceptionLogViewPage.class.php index 01d7188d4f..8c15b577f6 100644 --- a/wcfsetup/install/files/lib/acp/page/ExceptionLogViewPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/ExceptionLogViewPage.class.php @@ -76,7 +76,7 @@ class ExceptionLogViewPage extends MultipleLinkPage { public function readData() { AbstractPage::readData(); - $fileNameRegex = new Regex('\d{4}-\d{2}-\d{2}\.txt$'); + $fileNameRegex = new Regex('(?:^|/)\d{4}-\d{2}-\d{2}\.txt$'); $this->logFiles = DirectoryUtil::getInstance(WCF_DIR.'log/')->getFiles(SORT_DESC, $fileNameRegex); if ($this->exceptionID) { -- 2.20.1