Skip to content
Permalink
Browse files

Fix #1620 - escape characters in XML

  • Loading branch information...
muglug committed May 10, 2019
1 parent feff357 commit c935dfd9907d6fc312b46192b78bef8a036ee570
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Psalm/Output/Checkstyle.php
@@ -22,13 +22,13 @@ public function create(): string
$issue_data['message']
);
$output .= '<file name="' . $issue_data['file_name'] . '">' . "\n";
$output .= '<file name="' . htmlentities($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="' . $message . '"';
$output .= ' message="' . htmlentities($message) . '"';
$output .= '/>' . "\n";
$output .= '</file>' . "\n";
}

0 comments on commit c935dfd

Please sign in to comment.
You can’t perform that action at this time.