From d4863f6e33c900b45c6aea08cebdd97969368a45 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 18 Nov 2021 12:32:05 +0000 Subject: [PATCH] [Minor] Fix for old compilers --- src/libserver/html/html_url.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libserver/html/html_url.cxx b/src/libserver/html/html_url.cxx index 8f721b3e8..ff0834040 100644 --- a/src/libserver/html/html_url.cxx +++ b/src/libserver/html/html_url.cxx @@ -392,7 +392,8 @@ html_process_url(rspamd_mempool_t *pool, std::string_view &input) } else if (G_UNLIKELY (s[i] == '%')) { if (i + 2 < sz) { - auto [c1, c2] = std::tuple(s[i + 1], s[i + 2]); + auto c1 = s[i + 1]; + auto c2 = s[i + 2]; if (g_ascii_isxdigit(c1) && g_ascii_isxdigit(c2)) { auto codepoint = 0; -- 2.39.5