From b3b94b1896934e04eeeb6a07ab4065fd8f4ca4b3 Mon Sep 17 00:00:00 2001 From: Robert Spalek Date: Thu, 27 Sep 2001 09:54:22 +0000 Subject: [PATCH] url_component_separators has a default value "" to accelerate url_has_repeated_component() if not reconfigured --- lib/url.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/url.c b/lib/url.c index 7b0548ca..73e3b501 100644 --- a/lib/url.c +++ b/lib/url.c @@ -18,7 +18,7 @@ static uns url_ignore_spaces; static uns url_ignore_underflow; -static byte *url_component_separators = "/&?"; +static byte *url_component_separators = ""; static uns url_min_repeat_count = 0x7fffffff; static uns url_max_repeat_length = 0; @@ -630,6 +630,8 @@ url_has_repeated_component(byte *url) if (c) c++; } + if (comps < url_min_repeat_count) + return 0; comp = alloca(comps * sizeof(struct component)); for (i=0, c=url; c; i++) { -- 2.39.2