Use explicit newlines in ExceptionLogViewPage
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 18 Feb 2016 14:12:18 +0000 (15:12 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 18 Feb 2016 14:12:31 +0000 (15:12 +0100)
wcfsetup/install/files/lib/acp/page/ExceptionLogViewPage.class.php

index 8c15b577f693a3c335114ad3e1779812ac4d4a91..fe3c1fa0c24ba3b0c59c2b48dbbc7a46e1eba222 100644 (file)
@@ -134,17 +134,17 @@ class ExceptionLogViewPage extends MultipleLinkPage {
                $this->calculateNumberOfPages();
                
                $i = 0;
-               $exceptionRegex = new Regex('(?P<date>[MTWFS][a-z]{2}, \d{1,2} [JFMASOND][a-z]{2} \d{4} \d{2}:\d{2}:\d{2} [+-]\d{4})
-Message: (?P<message>.*?)
-File: (?P<file>.*?) \((?P<line>\d+)\)
-PHP version: (?P<phpVersion>.*?)
-WCF version: (?P<wcfVersion>.*?)
-Request URI: (?P<requestURI>.*?)
-Referrer: (?P<referrer>.*?)
-User-Agent: (?P<userAgent>.*?)
-Information: (?P<information>.*?)
-Stacktrace: 
-(?P<stacktrace>.*)', Regex::DOT_ALL);
+               $exceptionRegex = new Regex("(?P<date>[MTWFS][a-z]{2}, \d{1,2} [JFMASOND][a-z]{2} \d{4} \d{2}:\d{2}:\d{2} [+-]\d{4})\n".
+"Message: (?P<message>.*?)\n".
+"File: (?P<file>.*?) \((?P<line>\d+)\)\n".
+"PHP version: (?P<phpVersion>.*?)\n".
+"WCF version: (?P<wcfVersion>.*?)\n".
+"Request URI: (?P<requestURI>.*?)\n".
+"Referrer: (?P<referrer>.*?)\n".
+"User-Agent: (?P<userAgent>.*?)\n".
+"Information: (?P<information>.*?)\n".
+"Stacktrace: \n".
+"(?P<stacktrace>.*)", Regex::DOT_ALL);
                $stackTraceFormatter = new Regex('^\s+(#\d+)', Regex::MULTILINE);
                foreach ($this->exceptions as $key => $val) {
                        $i++;