From 84cf7d66b227d110b6a85db0bbcf0b0db5816cc6 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 16 Jun 2007 13:26:51 +0000 Subject: [PATCH] problems with accented characters in a query --- libraries/display_tbl.lib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/display_tbl.lib.php b/libraries/display_tbl.lib.php index 576c38228..7fe42bd8f 100644 --- a/libraries/display_tbl.lib.php +++ b/libraries/display_tbl.lib.php @@ -216,7 +216,9 @@ function PMA_displayTableNavigation($pos_next, $pos_prev, $sql_query) global $is_innodb; global $showtable; - $html_sql_query = htmlentities($sql_query); + // here, using htmlentities() would cause problems if the query + // contains accented characters + $html_sql_query = htmlspecialchars($sql_query); /** * @todo move this to a central place