From: Marcel Werk Date: Mon, 6 Jul 2015 17:43:42 +0000 (+0200) Subject: Fixed filename regex in ExceptionLogViewPage X-Git-Tag: 2.1.6~15 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=584d633164a6eedb1b6fbbde9f511a00d0e7e04b;p=GitHub%2FWoltLab%2FWCF.git Fixed filename regex in ExceptionLogViewPage --- 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) {