# HG changeset patch # User Sebastien Jodogne # Date 1758654669 -7200 # Node ID 5ea89eb7ba8facefaadb79dbc1eae7de46356e00 # Parent 47f3bbac4ed497b85f89207d8420569b545fa42e enabling of URI decoding in civetweb 1.16 diff -r 47f3bbac4ed4 -r 5ea89eb7ba8f OrthancFramework/Sources/HttpServer/HttpServer.cpp --- a/OrthancFramework/Sources/HttpServer/HttpServer.cpp Tue Sep 23 20:48:59 2025 +0200 +++ b/OrthancFramework/Sources/HttpServer/HttpServer.cpp Tue Sep 23 21:11:09 2025 +0200 @@ -1852,6 +1852,15 @@ options.push_back(dynamicStrings.back().c_str()); }; + if (CIVETWEB_VERSION_MAJOR > 1 || + (CIVETWEB_VERSION_MAJOR == 1 && + CIVETWEB_VERSION_MINOR >= 15)) + { + // URI-decoding of GET arguments was the default in civetweb <= 1.14 + options.push_back("decode_query_string"); + options.push_back("yes"); + } + assert(options.size() % 2 == 0); options.push_back(NULL);