From c35f1af6095a4fefa7f0e742eac565133abc141d Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 22 Feb 2020 19:48:53 +0300 Subject: Add UTF-8 error details to CI and submit service responces --- mod/mod-ci.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mod/mod-ci.cxx') diff --git a/mod/mod-ci.cxx b/mod/mod-ci.cxx index 42a38ca..77377eb 100644 --- a/mod/mod-ci.cxx +++ b/mod/mod-ci.cxx @@ -268,10 +268,13 @@ handle (request& rq, response& rs) // // Actually, the expected ones must satisfy too, so check them as well. // + string what; for (const name_value& nv: rps) { - if (nv.value && !utf8 (*nv.value, codepoint_types::graphic, U"\r\n\t")) - return respond_manifest (400, "invalid parameter " + nv.name); + if (nv.value && + !utf8 (*nv.value, what, codepoint_types::graphic, U"\n\r\t")) + return respond_manifest (400, + "invalid parameter " + nv.name + ": " + what); } // Parse and validate overrides, if present. -- cgit v1.1