Commit 64d6915d authored by webchick's avatar webchick

Issue #2346249 by rteijeiro: Fixed wrong escaped errors in Installer - Database settings.

parent 8ea359c4
......@@ -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 .= '<p class="error">' . $result . '</p>';
$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 <a href="http://drupal.org/getting-started/install">installation handbook</a>, 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 <a href="http://drupal.org/getting-started/install">installation handbook</a>, or contact your hosting provider.' . $message);
throw new TaskException($message);
}
}
......
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