From b965407b8ff1b2d5ff939a1f87f8d1d9b06c83b1 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Thu, 16 May 2024 11:53:00 -0400 Subject: [PATCH] fix: compare // with pathname, not input --- src/url_aggregator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/url_aggregator.cpp b/src/url_aggregator.cpp index c1d06bc5a..2fb1cf5d5 100644 --- a/src/url_aggregator.cpp +++ b/src/url_aggregator.cpp @@ -317,7 +317,7 @@ bool url_aggregator::set_pathname(const std::string_view input) { } clear_pathname(); parse_path(input); - if (checkers::begins_with(input, "//") && !has_authority() && + if (checkers::begins_with(get_pathname(), "//") && !has_authority() && !has_dash_dot()) { buffer.insert(components.pathname_start, "/."); components.pathname_start += 2;