From 7efb1d13c6143ae391c1e056f5a8f342e6ebbc5f Mon Sep 17 00:00:00 2001 From: wessels <> Date: Wed, 25 Feb 1998 14:12:18 +0000 Subject: [PATCH] Don't unescape URL-path and check for % characters -- need better solution --- src/url.cc | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/url.cc b/src/url.cc index 4127e4fadd..5e41dae984 100644 --- a/src/url.cc +++ b/src/url.cc @@ -1,6 +1,6 @@ /* - * $Id: url.cc,v 1.79 1998/02/24 17:00:10 wessels Exp $ + * $Id: url.cc,v 1.80 1998/02/25 07:12:18 wessels Exp $ * * DEBUG: section 23 URL Parsing * AUTHOR: Duane Wessels @@ -250,14 +250,6 @@ urlParse(method_t method, char *url) debug(23, 1)("urlParse: Illegal character in hostname '%s'\n", host); return NULL; } - /* - * Remove hex escapes - */ - rfc1738_unescape(urlpath); - if (strchr(urlpath, '%') != NULL) { - debug(23, 1)("urlParse: Illegal escape in URL-Path '%s'\n", urlpath); - return NULL; - } /* remove trailing dots from hostnames */ while ((l = strlen(host)) > 0 && host[--l] == '.') host[l] = '\0'; @@ -296,7 +288,6 @@ urnParse(method_t method, char *urn) request->method = method; request->protocol = PROTO_URN; xstrncpy(request->urlpath, &urn[4], MAX_URL); - rfc1738_unescape(request->urlpath); request->max_age = -1; request->max_forwards = -1; return request; -- 2.47.3