Minor xss reported by Aung Khant
This commit is contained in:
@@ -53,7 +53,7 @@ if (isset($GLOBALS['sr_take_action'])) {
|
||||
|
||||
if (! $link_to_master) {
|
||||
$_SESSION['replication']['sr_action_status'] = 'error';
|
||||
$_SESSION['replication']['sr_action_info'] = sprintf(__('Unable to connect to master %s.'), $sr['hostname']);
|
||||
$_SESSION['replication']['sr_action_info'] = sprintf(__('Unable to connect to master %s.'), htmlspecialchars($sr['hostname']));
|
||||
} else {
|
||||
// Read the current master position
|
||||
$position = PMA_replication_slave_bin_log_master($link_to_master);
|
||||
@@ -70,6 +70,7 @@ if (isset($GLOBALS['sr_take_action'])) {
|
||||
} else {
|
||||
$_SESSION['replication']['sr_action_status'] = 'success';
|
||||
$_SESSION['replication']['sr_action_info'] = sprintf(__('Master server changed succesfully to %s'), $sr['hostname']);
|
||||
$_SESSION['replication']['sr_action_info'] = sprintf(__('Master server changed succesfully to %s'), htmlspecialchars($sr['hostname']));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user