httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: localization of apache.org content/apache server
Date Wed, 06 Aug 1997 19:30:17 GMT


On Wed, 6 Aug 1997, Alexei Kosut wrote:

> Prior to directory_walk, call GetFullPathName() on r->filename. This
> expands filenames to their canonical format (full names, drive letters,
> backslashes). Then convert backslashes to forward slashes, so Apache will
> like it. Then make sure all the compares in directory_walk and file_walk
> (location_walk, too?) are strcasecmp().

If you're going to the effort of converting \ to / you might as well
downcase too.  It costs less cpu than doing (potentially) dozens of
strcasecmp()s.

Dean


Mime
View raw message