From 89619c7e65d8ee67b8e0bfdd60f86618b36e8dd0 Mon Sep 17 00:00:00 2001 From: Kushan20070126 Date: Wed, 22 Apr 2026 16:30:03 +0530 Subject: [PATCH] Fix Cookie::stricmp to safely lowercase signed chars --- lib/inc/drogon/Cookie.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/inc/drogon/Cookie.h b/lib/inc/drogon/Cookie.h index 2f02669bd2..6527a129be 100644 --- a/lib/inc/drogon/Cookie.h +++ b/lib/inc/drogon/Cookie.h @@ -359,7 +359,8 @@ class DROGON_EXPORT Cookie return false; for (size_t idx{0}; idx < str1Len; ++idx) { - auto lowerChar{tolower(str1[idx])}; + auto lowerChar{static_cast( + std::tolower(static_cast(str1[idx])))}; if (lowerChar != str2[idx]) {