From cbc5cdd7066c478f55ceb7b43165002c7f7cbfc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 25 Mar 2003 10:21:18 +0000 Subject: [PATCH] HTML entities fixes --- ChangeLog | 4 ++-- libraries/common.lib.php3 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1bdd5f581..88aa27971 100755 --- a/ChangeLog +++ b/ChangeLog @@ -6,8 +6,8 @@ $Id$ $Source$ 2003-03-25 Michal Cihar - * tbl_query_box.php3, tbl_properties_operations.php3: More HTML entities - fixes. + * tbl_query_box.php3, tbl_properties_operations.php3, + libraries/common.lib.php3: More HTML entities fixes. 2003-03-24 Michal Cihar * db_details_structure.php3, mult_submits.inc.php: Added CHECK TABLE to diff --git a/libraries/common.lib.php3 b/libraries/common.lib.php3 index 67dd1bda1..45e8b2015 100644 --- a/libraries/common.lib.php3 +++ b/libraries/common.lib.php3 @@ -1167,7 +1167,7 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold} function PMA_jsFormat($a_string = '', $add_backquotes = TRUE) { if (is_string($a_string)) { - $a_string = str_replace('"', '"', $a_string); + $a_string = htmlentities($a_string); $a_string = str_replace('\\', '\\\\', $a_string); $a_string = str_replace('\'', '\\\'', $a_string); $a_string = str_replace('#', '\\#', $a_string);