Security fix against bad JS code.

This commit is contained in:
Alexander M. Turek
2003-06-23 07:50:54 +00:00
parent 543d0bb751
commit fb8e68c04d
2 changed files with 3 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ $Source$
lang/lithuanian-*.inc.php3, lang/malay-*.inc.php3,
lang/russian-*.inc.php3, lang/ukrainian-*.inc.php3: Checked all language
files for incomplete arrays ($byteUnits, $day_of_week and $month).
* libraries/common.lib.php3: Security fix against bad JS code.
2003-06-22 Robin Johnson <robbat2@users.sourceforge.net>
* scripts/updatedocs.sh:

View File

@@ -411,7 +411,7 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
// Robbat2 - 12 January 2003, 9:46PM
// Revised, Robbat2 - 13 Janurary 2003, 2:59PM
if (PMA_SQP_isError()) {
$parsed_sql = $the_query;
$parsed_sql = htmlspecialchars($the_query);
} else {
$parsed_sql = PMA_SQP_parse($the_query);
}
@@ -1875,4 +1875,4 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
} // end if
} // end if: minimal common.lib needed?
} // $__PMA_COMMON_LIB__
?>
?>