]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Special/HTTPException.php
spelling: however
[friendica.git] / src / Module / Special / HTTPException.php
index 6928cf810f543897529e1fd4f1db980c9fd90b77..8a8cc30ebb99dcd7ae98acaf8e97699164240aa8 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -104,6 +104,7 @@ class HTTPException
                                $tpl     = Renderer::getMarkupTemplate('http_status.tpl');
                                $content = Renderer::replaceMacros($tpl, $vars);
                        } catch (\Exception $e) {
+                               $vars = array_map('htmlentities', $vars);
                                $content = "<h1>{$vars['$title']}</h1><p>{$vars['$message']}</p>";
                                if ($this->isSiteAdmin) {
                                        $content .= "<p>{$vars['$thrown']}</p>";