From ee5e31e0bf60842711d1fc4808c539f36863240c Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 28 Mar 2019 21:50:08 -0700 Subject: [PATCH] ircd::json: Use strict type analysis for value constructions. --- ircd/json.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ircd/json.cc b/ircd/json.cc index 8e4526ea2..84fcfff62 100644 --- a/ircd/json.cc +++ b/ircd/json.cc @@ -3429,7 +3429,7 @@ ircd::json::value::value(const char *const &str, } ircd::json::value::value(const string_view &sv) -:value{sv, json::type(sv, std::nothrow)} +:value{sv, json::type(sv, strict, std::nothrow)} { } @@ -3445,7 +3445,7 @@ ircd::json::value::value(const string_view &sv, } ircd::json::value::value(const std::string &s) -:value{s, json::type(s, std::nothrow)} +:value{s, json::type(s, strict, std::nothrow)} { }