From 8278a357e3aeaf4b58bc88fcfbdd48e27c0ff944 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Wed, 8 Feb 2017 10:25:14 -0800 Subject: sanitize utf8 data going to server Signed-off-by: Lamont Granquist Signed-off-by: Tom Duffield --- lib/chef/data_collector.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/chef/data_collector.rb') diff --git a/lib/chef/data_collector.rb b/lib/chef/data_collector.rb index bcd15ea323..0a92b800a6 100644 --- a/lib/chef/data_collector.rb +++ b/lib/chef/data_collector.rb @@ -288,9 +288,9 @@ class Chef # raise an exception. def setup_http_client if data_collector_token.nil? - Chef::ServerAPI.new(data_collector_server_url) + Chef::ServerAPI.new(data_collector_server_url, validate_utf8: false) else - Chef::HTTP::SimpleJSON.new(data_collector_server_url) + Chef::HTTP::SimpleJSON.new(data_collector_server_url, validate_utf8: false) end end -- cgit v1.2.1