Index: jk_uri_worker_map.c
===================================================================
RCS file: /home/cvspublic/jakarta-tomcat/src/native/mod_jk/common/jk_uri_worker_map.c,v
retrieving revision 1.5
diff -w -u -r1.5 jk_uri_worker_map.c
--- jk_uri_worker_map.c	2001/05/16 20:49:25	1.5
+++ jk_uri_worker_map.c	2001/08/07 19:53:11
@@ -344,6 +344,8 @@
            "Into jk_uri_worker_map_t::map_uri_to_worker\n");    
 
     if(uw_map && uri && '/' == uri[0]) {
+        unsigned int sz = 0;
+        char *qry_start = 0;
         unsigned i;
         unsigned best_match = -1;
         unsigned longest_match = 0;
@@ -368,7 +370,13 @@
                             uri, 
                             uw_map->maps[i].ctxt_len)) {
                 if(MATCH_TYPE_EXACT == uw_map->maps[i].match_type) {
-                    if(strlen(uri) == uw_map->maps[i].ctxt_len) {
+                    /* Do not make the query string part of the match */
+                    if (qry_start = strchr(uri, '?')) {
+                        sz = (qry_start - uri) / sizeof(char);
+                    } else {
+                        sz = strlen(uri);
+                    }
+                    if(sz == uw_map->maps[i].ctxt_len) {
 			jk_log(l,
 			       JK_LOG_DEBUG,
 			       "jk_uri_worker_map_t::map_uri_to_worker, Found an exact match %s -> %s\n",
