Skip to content

Commit

Permalink
Escape error message (in case it comes from 3rd-party tool)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierstoval committed Sep 17, 2024
1 parent d4fc0c0 commit 34a6b38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Glpi/Application/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ private function outputDebugMessage(string $error_type, string $message, string
$verbosity = OutputInterface::VERBOSITY_VERY_VERBOSE;
break;
}
$message = $error_type . ': ' . $message;
$message = $error_type . ': ' . \htmlspecialchars($message);
if (null !== $format) {
$message = sprintf('<%1$s>%2$s</%1$s>', $format, $message);
}
Expand Down

0 comments on commit 34a6b38

Please sign in to comment.