From: Robert Spalek Date: Thu, 27 Sep 2001 09:54:22 +0000 (+0000) Subject: url_component_separators has a default value "" to accelerate X-Git-Tag: holmes-import~1467 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=b3b94b1896934e04eeeb6a07ab4065fd8f4ca4b3;p=libucw.git url_component_separators has a default value "" to accelerate url_has_repeated_component() if not reconfigured --- 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++) {