Skip to content

Commit c3c16d4

Browse files
committed
Convert applicable characters to HTML entities
1 parent a58e564 commit c3c16d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Debug/ValidationCollector.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,14 @@ protected function renderValidations() : string
113113
<td rowspan="<?= $count ?>"><?= $index + 1 ?></td>
114114
<td rowspan="<?= $count ?>"><?= $item['type'] ?></td>
115115
<td rowspan="<?= $count ?>"><?= $count ?></td>
116-
<td><?= $errors[0]['field'] ?? '' ?></td>
117-
<td><?= $errors[0]['error'] ?? '' ?></td>
116+
<td><?= \htmlentities($errors[0]['field'] ?? '') ?></td>
117+
<td><?= \htmlentities($errors[0]['error'] ?? '') ?></td>
118118
<td rowspan="<?= $count ?>"><?= Debugger::roundSecondsToMilliseconds($item['end'] - $item['start']) ?></td>
119119
</tr>
120120
<?php for ($i = 1; $i < $count; $i++): ?>
121121
<tr>
122-
<td><?= $errors[$i]['field'] ?></td>
123-
<td><?= $errors[$i]['error'] ?></td>
122+
<td><?= \htmlentities($errors[$i]['field']) ?></td>
123+
<td><?= \htmlentities($errors[$i]['error']) ?></td>
124124
</tr>
125125
<?php endfor;
126126
endforeach; ?>

0 commit comments

Comments
 (0)