only fix external links if there's a layout

This commit is contained in:
Alex Grintsvayg 2019-10-09 14:38:46 -04:00
parent a83245afbc
commit 52dc3068a1
No known key found for this signature in database
GPG key ID: AEB3F089F86A22B5

View file

@ -34,8 +34,8 @@ class Controller
$content = View::render($viewTemplate, $viewParameters + ['fullPage' => true]);
if ($layout) {
$content = View::render('layout/basic', ['content' => $content] + $layoutParams);
}
$content = View::safeExternalLinks($content, Request::getHost());
}
Response::setContent($content);
}