From 8fecbcf9bff20b19cc3c887f8e6ce2e79fa7df0c Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Wed, 6 May 2020 21:49:20 -0300 Subject: [PATCH] Make safe --- includes/admin/class-wc-admin-notices.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/class-wc-admin-notices.php b/includes/admin/class-wc-admin-notices.php index e966ee6b9f5..fd61bf6c388 100644 --- a/includes/admin/class-wc-admin-notices.php +++ b/includes/admin/class-wc-admin-notices.php @@ -568,7 +568,7 @@ class WC_Admin_Notices { $uploads = wp_get_upload_dir(); // Check for the "uploads/woocommerce_uploads" directory. - $response = wp_remote_get( $uploads['baseurl'] . '/woocommerce_uploads' ); + $response = wp_safe_remote_get( esc_url_raw( $uploads['baseurl'] . '/woocommerce_uploads' ) ); $response_code = intval( wp_remote_retrieve_response_code( $response ) ); $response_content = wp_remote_retrieve_body( $response );