diff --git a/enum_editor.php b/enum_editor.php index 088275f88..586e85e7f 100644 --- a/enum_editor.php +++ b/enum_editor.php @@ -57,8 +57,8 @@ require_once './libraries/header_meta_style.inc.php';

- - + + @@ -66,7 +66,7 @@ require_once './libraries/header_meta_style.inc.php';

- +
diff --git a/server_replication.php b/server_replication.php index 9b7724d28..a52459106 100644 --- a/server_replication.php +++ b/server_replication.php @@ -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'])); } } }