bug #4562 [security] XSS in debug SQL output
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
parent
5118938f10
commit
57594febab
@ -1,6 +1,9 @@
|
||||
phpMyAdmin - ChangeLog
|
||||
======================
|
||||
|
||||
4.0.10.5 (not yet released)
|
||||
- bug #4562 [security] XSS in debug SQL output
|
||||
|
||||
4.0.10.4 (2014-10-01)
|
||||
- bug #4544 [security] XSS vulnerabilities in table search and table structure pages
|
||||
|
||||
|
||||
@ -139,11 +139,11 @@ function PMA_DBI_DBG_query($query, $link, $result, $time)
|
||||
} else {
|
||||
$_SESSION['debug']['queries'][$hash] = array();
|
||||
if ($result == false) {
|
||||
$_SESSION['debug']['queries'][$hash]['error']
|
||||
= '<b style="color:red">' . mysqli_error($link) . '</b>';
|
||||
$_SESSION['debug']['queries'][$hash]['error'] = '<b style="color:red">'
|
||||
. htmlspecialchars(mysqli_error($link)) . '</b>';
|
||||
}
|
||||
$_SESSION['debug']['queries'][$hash]['count'] = 1;
|
||||
$_SESSION['debug']['queries'][$hash]['query'] = $query;
|
||||
$_SESSION['debug']['queries'][$hash]['query'] = htmlspecialchars($query);
|
||||
$_SESSION['debug']['queries'][$hash]['time'] = $time;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user