diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index 6fa2310d8c..7211430947 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -966,7 +966,7 @@ function request_filesystem_credentials($form_post, $type = '', $error = false, $error_string = __('Error: There was an error connecting to the server, Please verify the settings are correct.'); if ( is_wp_error($error) ) $error_string = $error->get_error_message(); - echo '

' . $error_string . '

'; + echo '

' . esc_html( $error_string ) . '

'; } $types = array();