1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Fix #1639 - don’t escape unnecessary characters

This commit is contained in:
Brown 2019-05-15 11:03:10 -04:00
parent cfff66efb7
commit 02498a3d74

View File

@ -22,13 +22,13 @@ class Checkstyle extends Output
$issue_data['message']
);
$output .= '<file name="' . htmlentities($issue_data['file_name']) . '">' . "\n";
$output .= '<file name="' . htmlspecialchars($issue_data['file_name']) . '">' . "\n";
$output .= ' ';
$output .= '<error';
$output .= ' line="' . $issue_data['line_from'] . '"';
$output .= ' column="' . $issue_data['column_from'] . '"';
$output .= ' severity="' . $issue_data['severity'] . '"';
$output .= ' message="' . htmlentities($message) . '"';
$output .= ' message="' . htmlspecialchars($message) . '"';
$output .= '/>' . "\n";
$output .= '</file>' . "\n";
}