Mercurial > hg > orthanc
changeset 6328:5ea89eb7ba8f
enabling of URI decoding in civetweb 1.16
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 23 Sep 2025 21:11:09 +0200 |
parents | 47f3bbac4ed4 |
children | e7e47f3188b8 |
files | OrthancFramework/Sources/HttpServer/HttpServer.cpp |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);