Commit 67c970c7 authored by Markus Willman's avatar Markus Willman

fix missing quote

parent 3e59c43c
......@@ -64,14 +64,14 @@ class DCLogParser implements ParserInterface
$line = rtrim($line, "\n\r\0") . $this->line_separator;
$parsed_line = preg_replace_callback('#^'. static::TIMESTAMP_REGEX .'<([^>]+)> ?(.*?)$#u', function($matches) use ($line_num) {
return "<span class=\"timestamp\" id=\"m{$line_num}><a href=\"#m{$line_num}\">{$matches[1]}</a></span>".
return "<span class=\"timestamp\" id=\"m{$line_num}\"><a href=\"#m{$line_num}\">{$matches[1]}</a></span>".
'&lt;<span class="nick">'. htmlspecialchars($matches[2]) .'</span>&gt; '. htmlspecialchars($matches[3]);
}, $line, 1);
if ($parsed_line === $line)
{
$parsed_line = preg_replace_callback('#^'. static::TIMESTAMP_REGEX .'\* ([^ ]+) (.*?)$#u', function($matches) use ($line_num) {
return "<span class=\"timestamp\" id=\"m{$line_num}><a href=\"#m{$line_num}\">{$matches[1]}</a></span>".
return "<span class=\"timestamp\" id=\"m{$line_num}\"><a href=\"#m{$line_num}\">{$matches[1]}</a></span>".
'* <span class="nick">'. htmlspecialchars($matches[2]) .'</span> '. htmlspecialchars($matches[3]);
}, $line, 1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment