Fix XSS on delimiter in db_sql.php.

This commit is contained in:
Marc Delisle
2010-08-17 16:21:37 +02:00
committed by Michal Čihař
parent 8535d48ae9
commit 4951fd1c85

View File

@@ -36,7 +36,7 @@ if ($num_tables == 0 && empty($db_query_force)) {
/**
* Query box, bookmark, insert data from textfile
*/
PMA_sqlQueryForm(true, false, isset($_REQUEST['delimiter']) ? $_REQUEST['delimiter'] : ';');
PMA_sqlQueryForm(true, false, isset($_REQUEST['delimiter']) ? htmlspecialchars($_REQUEST['delimiter']) : ';');
/**
* Displays the footer