CGI GET problem

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 UTC