Escape displayed user input

This commit is contained in:
Michal Čihař
2011-08-17 09:57:29 +02:00
parent 97439c45f0
commit 5146970826

View File

@@ -368,7 +368,7 @@ foreach ($query as $single_query) {
} }
if (! $result) { if (! $result) {
$error_messages[] = PMA_DBI_getError(); $error_messages[] = PMA_Message::sanitize(PMA_DBI_getError());
} else { } else {
// The next line contains a real assignment, it's not a typo // The next line contains a real assignment, it's not a typo
if ($tmp = @PMA_DBI_affected_rows()) { if ($tmp = @PMA_DBI_affected_rows()) {
@@ -392,8 +392,8 @@ foreach ($query as $single_query) {
} // end if } // end if
foreach (PMA_DBI_get_warnings() as $warning) { foreach (PMA_DBI_get_warnings() as $warning) {
$warning_messages[] = $warning['Level'] . ': #' . $warning['Code'] $warning_messages[] = PMA_Message::sanitize($warning['Level'] . ': #' . $warning['Code']
. ' ' . $warning['Message']; . ' ' . $warning['Message']);
} }
unset($result); unset($result);