cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: curl_escape function

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 3 Aug 2001 08:36:06 +0200 (MET DST)

On Mon, 16 Jul 2001, Bescon, Guenole wrote:

> In the code of the curl_escape function, what is the goal of the following
> test:

> else if(!(in >= 'a' && in <= 'z') && !(in >= 'A' && in <= 'Z') && !(in >= ''
> && in <= '9')) {
>
> Why the third condition test in >= '' ? (this is not in >= '0' instead
> ??)

In my source code the exact test looks like (lib/escape.c, line 53):

    else if(!(in >= 'a' && in <= 'z') &&
            !(in >= 'A' && in <= 'Z') &&
            !(in >= '0' && in <= '9')) {

I can't see any >= '' test.

CVS tells me it has been like that since March 22nd, so this is not a new
construct.

-- 
     Daniel Stenberg -- curl dude -- http://curl.haxx.se/
_______________________________________________
Curl-library mailing list
http://curl.haxx.se/libcurl/
Received on 2001-08-03

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET