HTML entities fixes

This commit is contained in:
Michal Čihař
2003-03-25 10:21:18 +00:00
parent 773d0dce22
commit cbc5cdd706
2 changed files with 3 additions and 3 deletions

View File

@@ -6,8 +6,8 @@ $Id$
$Source$ $Source$
2003-03-25 Michal Cihar <nijel@users.sourceforge.net> 2003-03-25 Michal Cihar <nijel@users.sourceforge.net>
* tbl_query_box.php3, tbl_properties_operations.php3: More HTML entities * tbl_query_box.php3, tbl_properties_operations.php3,
fixes. libraries/common.lib.php3: More HTML entities fixes.
2003-03-24 Michal Cihar <nijel@users.sourceforge.net> 2003-03-24 Michal Cihar <nijel@users.sourceforge.net>
* db_details_structure.php3, mult_submits.inc.php: Added CHECK TABLE to * db_details_structure.php3, mult_submits.inc.php: Added CHECK TABLE to

View File

@@ -1167,7 +1167,7 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
function PMA_jsFormat($a_string = '', $add_backquotes = TRUE) function PMA_jsFormat($a_string = '', $add_backquotes = TRUE)
{ {
if (is_string($a_string)) { if (is_string($a_string)) {
$a_string = str_replace('"', '&quot;', $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); $a_string = str_replace('\'', '\\\'', $a_string);
$a_string = str_replace('#', '\\#', $a_string); $a_string = str_replace('#', '\\#', $a_string);