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

@@ -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__
?>
?>