W3C home > Mailing lists > Public > www-jigsaw@w3.org > January to February 1997

bug in Request.java

From: Anselm Baird_Smith <abaird@www43.inria.fr>
Date: Tue, 14 Jan 1997 10:14:38 +0100 (MET)
Message-Id: <199701140914.KAA16407@www43.inria.fr>
To: Rich Waters <raw@infoseek.com>
Cc: www-jigsaw@www10.w3.org

Thanks for the two reports (and fixes), I just applied the diffs.

Anselm.

Rich Waters writes:
 > Hi all,
 >     I am sending this email because this address is given in the README
 > file of the 1.0alpha3 release of jigsaw as the place to report bugs. 
 > I apologize if these problems have already been reported and/or fixed.
 > 
 >     Here is the problem:
 > 
 > In src/classes/w3c/jigsaw/Request.java , the "unescape" method is broken.
 > It needs to add back in the 10 to account for the hex digit.  
 > 
 > Lines 257 & 261 contain:
 > 	  : Character.toLowerCase ((char) ch) - 'a' ) & 0xF ;
 > 
 > They should say:
 > 	  : Character.toLowerCase ((char) ch) - 'a' + 10 ) & 0xF ;
 > 
 >     Also, the CgiResource is unescaping the QUERY_STRING.  The cgi
 > specification states that the values of QUERY_STRING is "url-encoded".
 >     So, I commented out line 514 of src/classes/jigsaw/forms/CgiResource.java:
 > 
 >   // query = Request.unescape(request.getQueryString()) ;
 > 
 > 
 >     -rich
 > 
 > 
 >         
 >    
 > 
 > 
 > 
 > 
 > 
 > 
 > 
 > 
 > 
 > 
Received on Tuesday, 14 January 1997 04:14:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:25 GMT