You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by av...@satori.com on 2000/02/05 22:48:41 UTC

mod_jserv bug/fix

I reported this a fews ago :

The getRequestURI() gives me two varying results. 

When I access a servlet directly on tomcat  via the 8080 port the 
getRequestURI returns the URI without the query strings.

But when I access the servlet via Apache the getRequestURI
returns the URI and the query strings.


Here is the fix:

In jserv_ajpv12.c in function original_uri(request_rec *r)

the line :      

while (*last && !ap_isspace(*last)) {

  needs to be changed to 

while (*last && !ap_isspace(*last) && *last != '?') {

It was not accounting for the beginning of the query string which 
is a '?'


-- 
Freddie  Mendoza             
avm@satori.com
A search engine for the Price Conscious
http://satori.com/~avm/cheapbooks.html