Escape displayed user input
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user