Fix #2307 remove hash character from TemplateStart/TemplateEnd debugging comment to prevent confusion with SSI directive

This commit is contained in:
Kijin Sung 2024-04-08 22:55:57 +09:00
parent 777a62af35
commit 9134433adf

View file

@ -479,7 +479,7 @@ class Template
// Insert comments for debugging.
if(Debug::isEnabledForCurrentUser() && \Context::getResponseMethod() === 'HTML' && !preg_match('/^<(?:\!DOCTYPE|\?xml)/', $content))
{
$meta = '<!--#Template%s:' . $this->relative_path . '-->' . "\n";
$meta = '<!--Template%s:' . $this->relative_path . '-->' . "\n";
$content = sprintf($meta, 'Start') . $content . sprintf($meta, 'End');
}