diff --git a/libraries/server_privileges.lib.php b/libraries/server_privileges.lib.php index aa72a282fc..a0eaae9092 100644 --- a/libraries/server_privileges.lib.php +++ b/libraries/server_privileges.lib.php @@ -2485,7 +2485,7 @@ function PMA_getLinkToDbAndTable($url_dbname, $dbname, $tablename) ) ) . '">' - . htmlspecialchars($dbname) . ': ' + . htmlspecialchars(stripslashes($dbname)) . ': ' . PMA_Util::getTitleForTarget( $GLOBALS['cfg']['DefaultTabDatabase'] ) @@ -2640,7 +2640,7 @@ function PMA_getHtmlForDisplayUserRightsInRows($db_rights, $dbname, $html_output .= '
' . "\n"
@@ -2742,7 +2742,7 @@ function PMA_getTableForDisplayAllTableSpecificRights(
// table body
// get data
- // we also want privielgs for this user not in table `db` but in other table
+ // we also want privileges for this user not in table `db` but in other table
$tables = $GLOBALS['dbi']->fetchResult('SHOW TABLES FROM `mysql`;');
/**
@@ -3726,13 +3726,14 @@ function PMA_getHtmlHeaderForDisplayUserProperties(
'tablename' => '',
)
)
- . '">' . htmlspecialchars($dbname)
+ . '">' . htmlspecialchars(stripslashes($dbname))
. '';
$html_output .= ' - ' . __('Table')
. ' ' . htmlspecialchars($tablename) . '';
} else {
- $html_output .= ' ' . htmlspecialchars($dbname) . '';
+ $html_output .= ' ' . htmlspecialchars(stripslashes($dbname))
+ . '';
}
} else {