From 5321bc46439a0daa6b47a15a2e2b60aa383f21f0 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 20 Nov 2014 10:09:13 +0100 Subject: [PATCH] Don't validate strings in the JSON parser fixes #7730 --- lib/base/json.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/base/json.cpp b/lib/base/json.cpp index fb72a57e7..3eab02799 100644 --- a/lib/base/json.cpp +++ b/lib/base/json.cpp @@ -340,6 +340,7 @@ Value icinga::JsonDecode(const String& data) handle = yajl_alloc(&callbacks, &cfg, NULL, &context); #else /* YAJL_MAJOR */ handle = yajl_alloc(&callbacks, NULL, &context); + yajl_config(handle, yajl_dont_validate_strings, 1); #endif /* YAJL_MAJOR */ yajl_parse(handle, reinterpret_cast(data.CStr()), data.GetLength());