changeset 4876:155daf23887d

disable useless calls to Toolbox::UrlDecode()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 18 Jan 2022 17:51:14 +0100
parents 5dae41084ab7
children d54eec67bf16
files OrthancFramework/Sources/HttpServer/HttpToolbox.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancFramework/Sources/HttpServer/HttpToolbox.cpp	Tue Jan 18 15:04:04 2022 +0100
+++ b/OrthancFramework/Sources/HttpServer/HttpToolbox.cpp	Tue Jan 18 17:51:14 2022 +0100
@@ -51,8 +51,13 @@
       value = std::string(equal + 1, end);
     }
 
+#if 0
+    // These calls were present in Orthanc <= 1.9.7, but should not be
+    // used because mongoose/civetweb already implement URL decoding
+    // (cf. "mg_url_decode()")
     Toolbox::UrlDecode(name);
     Toolbox::UrlDecode(value);
+#endif
 
     result.push_back(std::make_pair(name, value));
   }