Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-anne authored Sep 17, 2024
1 parent 043ce1d commit 2ad03ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Glpi/Application/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ public function handleSqlError(int $error_code, string $error_message, string $q
{
$this->outputDebugMessage(
sprintf('SQL Error "%s"', $error_code),
sprintf('%s in query "%s"', \htmlspecialchars($error_message), preg_replace('/\\n/', ' ', $query)),
sprintf('%s in query "%s"', $error_message, preg_replace('/\\n/', ' ', $query)),
self::ERROR_LEVEL_MAP[E_USER_ERROR]
);
}
Expand Down Expand Up @@ -391,7 +391,7 @@ public function handleException(\Throwable $exception, bool $quiet = false): voi

$this->logErrorMessage($error_type, $error_description, $error_trace, $log_level);
if (!$quiet) {
$this->outputDebugMessage($error_type, \htmlspecialchars($error_description), $log_level);
$this->outputDebugMessage($error_type, $error_description, $log_level);
}
}

Expand Down

0 comments on commit 2ad03ba

Please sign in to comment.