Fixed filename regex in ExceptionLogViewPage
authorMarcel Werk <burntime@woltlab.com>
Mon, 6 Jul 2015 17:43:42 +0000 (19:43 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 6 Jul 2015 17:43:42 +0000 (19:43 +0200)
wcfsetup/install/files/lib/acp/page/ExceptionLogViewPage.class.php

index 01d7188d4fffe6a37a0a4e2cea8ffbc4e0807fcf..8c15b577f693a3c335114ad3e1779812ac4d4a91 100644 (file)
@@ -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) {