From eb98d16e3ddb3da4dac45e061ab51acb537fe30c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 18 Feb 2016 15:12:18 +0100 Subject: [PATCH] Use explicit newlines in ExceptionLogViewPage --- .../acp/page/ExceptionLogViewPage.class.php | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/wcfsetup/install/files/lib/acp/page/ExceptionLogViewPage.class.php b/wcfsetup/install/files/lib/acp/page/ExceptionLogViewPage.class.php index 8c15b577f6..fe3c1fa0c2 100644 --- a/wcfsetup/install/files/lib/acp/page/ExceptionLogViewPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/ExceptionLogViewPage.class.php @@ -134,17 +134,17 @@ class ExceptionLogViewPage extends MultipleLinkPage { $this->calculateNumberOfPages(); $i = 0; - $exceptionRegex = new Regex('(?P[MTWFS][a-z]{2}, \d{1,2} [JFMASOND][a-z]{2} \d{4} \d{2}:\d{2}:\d{2} [+-]\d{4}) -Message: (?P.*?) -File: (?P.*?) \((?P\d+)\) -PHP version: (?P.*?) -WCF version: (?P.*?) -Request URI: (?P.*?) -Referrer: (?P.*?) -User-Agent: (?P.*?) -Information: (?P.*?) -Stacktrace: -(?P.*)', Regex::DOT_ALL); + $exceptionRegex = new Regex("(?P[MTWFS][a-z]{2}, \d{1,2} [JFMASOND][a-z]{2} \d{4} \d{2}:\d{2}:\d{2} [+-]\d{4})\n". +"Message: (?P.*?)\n". +"File: (?P.*?) \((?P\d+)\)\n". +"PHP version: (?P.*?)\n". +"WCF version: (?P.*?)\n". +"Request URI: (?P.*?)\n". +"Referrer: (?P.*?)\n". +"User-Agent: (?P.*?)\n". +"Information: (?P.*?)\n". +"Stacktrace: \n". +"(?P.*)", Regex::DOT_ALL); $stackTraceFormatter = new Regex('^\s+(#\d+)', Regex::MULTILINE); foreach ($this->exceptions as $key => $val) { $i++; -- 2.20.1