[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] fix for issue 2475: ignore case for hostnames (repost)

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2006-03-29 12:33:47 CEST

Philip Martin <philip@codematters.co.uk> writes:

>> + for(i = 0; host_uri.hostname[i]; i++)
>> + host_uri.hostname[i] = tolower(host_uri.hostname[i]);
>> +
>> + // path will be pointing to a new memory location, so update src to
>> + // point to the new location too.
>> + offset = src - path;
>> + path = apr_uri_unparse(pool, &host_uri, APR_URI_UNP_REVEALPASSWORD);
>> + src = path + offset;
>
> Rather than overwriting host_uri and calculating a new path can you
> simply copy the lower case stuff into dst?

I see now, the unparse call is to handle things like username and
password.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Mar 29 12:34:53 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.