Commit 3dd38370 authored by alexpott's avatar alexpott
Browse files

Issue #2501749 by joelpittet: Remove SafeMarkup::set in SimpletestResultsForm.php

parent 6588593a
...@@ -313,8 +313,7 @@ public static function addResultForm(array &$form, array $results) { ...@@ -313,8 +313,7 @@ public static function addResultForm(array &$form, array $results) {
$rows = array(); $rows = array();
foreach ($assertions as $assertion) { foreach ($assertions as $assertion) {
$row = array(); $row = array();
// Assertion messages are in code, so we assume they are safe. $row[] = SafeMarkup::checkAdminXss($assertion->message);
$row[] = SafeMarkup::set($assertion->message);
$row[] = $assertion->message_group; $row[] = $assertion->message_group;
$row[] = \Drupal::service('file_system')->basename(($assertion->file)); $row[] = \Drupal::service('file_system')->basename(($assertion->file));
$row[] = $assertion->line; $row[] = $assertion->line;
......
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