diff options
author | Michal Čihař <michal@cihar.com> | 2011-08-17 11:57:29 +0400 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2011-08-17 11:57:29 +0400 |
commit | 514697082675f054671f6af4aa27c0c4601fcce8 (patch) | |
tree | b4ba445953b426e509b4e4798b8e14dd93dc48b8 /tbl_replace.php | |
parent | 97439c45f02508fc2fa54558c3d8cfc84146ffe8 (diff) |
Escape displayed user input
Diffstat (limited to 'tbl_replace.php')
-rw-r--r-- | tbl_replace.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tbl_replace.php b/tbl_replace.php index 02e8c49402..f7cc17c1b7 100644 --- a/tbl_replace.php +++ b/tbl_replace.php @@ -368,7 +368,7 @@ foreach ($query as $single_query) { } if (! $result) { - $error_messages[] = PMA_DBI_getError(); + $error_messages[] = PMA_Message::sanitize(PMA_DBI_getError()); } else { // The next line contains a real assignment, it's not a typo if ($tmp = @PMA_DBI_affected_rows()) { @@ -392,8 +392,8 @@ foreach ($query as $single_query) { } // end if foreach (PMA_DBI_get_warnings() as $warning) { - $warning_messages[] = $warning['Level'] . ': #' . $warning['Code'] - . ' ' . $warning['Message']; + $warning_messages[] = PMA_Message::sanitize($warning['Level'] . ': #' . $warning['Code'] + . ' ' . $warning['Message']); } unset($result); |