Skip to content

Commit f0f8f2b

Browse files
committed
Escape routine privileges listing
Signed-off-by: Michal Čihař <michal@cihar.com>
1 parent 1e6b740 commit f0f8f2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/server_privileges.lib.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2399,13 +2399,13 @@ function PMA_getHtmlTableBodyForSpecificDbRoutinePrivs($db, $odd_row, $index_che
23992399
. 'id="checkbox_sel_users_' . ($index_checkbox++) . '" '
24002400
. 'value="' . $value . '" /></td>';
24012401

2402-
$html_output .= '<td>' . $row['User']
2402+
$html_output .= '<td>' . htmlspecialchars($row['User'])
24032403
. '</td>'
2404-
. '<td>' . $row['Host']
2404+
. '<td>' . htmlspecialchars($row['Host'])
24052405
. '</td>'
24062406
. '<td>' . 'routine'
24072407
. '</td>'
2408-
. '<td>' . '<code>' . $row['Routine_name'] . '</code>'
2408+
. '<td>' . '<code>' . htmlspecialchars($row['Routine_name']) . '</code>'
24092409
. '</td>'
24102410
. '<td>' . 'Yes'
24112411
. '</td>';

0 commit comments

Comments
 (0)