diff --git a/core/lib/Drupal/Core/Database/Install/Tasks.php b/core/lib/Drupal/Core/Database/Install/Tasks.php index 070d24c..bc05bdd 100644 --- a/core/lib/Drupal/Core/Database/Install/Tasks.php +++ b/core/lib/Drupal/Core/Database/Install/Tasks.php @@ -7,6 +7,8 @@ namespace Drupal\Core\Database\Install; +use Drupal\Component\Utility\SafeMarkup; +use Drupal\Component\Utility\String; use Drupal\Core\Database\Database; /** @@ -150,11 +152,11 @@ public function runTasks() { $message = ''; foreach ($this->results as $result => $success) { if (!$success) { - $message .= '
' . $result . '
'; + $message = SafeMarkup::isSafe($result) ? $result : String::checkPlain($result); } } if (!empty($message)) { - $message = 'Resolve all issues below to continue the installation. For help configuring your database server, see the installation handbook, or contact your hosting provider.' . $message; + $message = SafeMarkup::set('Resolve all issues below to continue the installation. For help configuring your database server, see the installation handbook, or contact your hosting provider.' . $message); throw new TaskException($message); } }