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

CGI GET problem

From: Chris Jolly <trapper@cix.compulink.co.uk>
Date: Thu, 13 Feb 97 14:55 GMT0
To: www-jigsaw@w3.org
Cc: trapper@cix.compulink.co.uk
Message-Id: <memo.381908@cix.compulink.co.uk>
I believe that there is an error in CgiResource in that the GET query 
string is unescaped. This results in queries being mangled on their way 
to the CGI program concerned. It is easily fixed by removing the call to 
Request.unescape(), i.e. the bit of CgiResource.java that reads:

    query = request.getQueryString();
    if ( query != null ) {
        query = request.unescape(request.getQueryString()) ;
        addEnv("QUERY_STRING", query, env) ;
    }

can be changed to:

    query = request.getQueryString();
    if ( query != null ) {
        addEnv("QUERY_STRING", query, env) ;
    }

Haven't checked this extensively but it has certainly fixed some problems!

kit
Received on Thursday, 13 February 1997 10:51:55 GMT

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