*** jk_uri_worker_map.c.orig	Wed Sep 26 11:53:35 2001
--- jk_uri_worker_map.c	Wed Sep 26 18:26:07 2001
***************
*** 347,357 ****
          unsigned i;
          unsigned best_match = -1;
          unsigned longest_match = 0;
!         char clean_uri[4096];
          char *url_rewrite = strstr(uri, JK_PATH_SESSION_IDENTIFIER);
          
          if(url_rewrite) {
!             strcpy(clean_uri, uri);
              url_rewrite = strstr(clean_uri, JK_PATH_SESSION_IDENTIFIER);
              *url_rewrite = '\0';
              uri = clean_uri;
--- 347,357 ----
          unsigned i;
          unsigned best_match = -1;
          unsigned longest_match = 0;
!         char *clean_uri=NULL;
          char *url_rewrite = strstr(uri, JK_PATH_SESSION_IDENTIFIER);
          
          if(url_rewrite) {
! 	    clean_uri = jk_pool_strdup(&uw_map->p,uri);
              url_rewrite = strstr(clean_uri, JK_PATH_SESSION_IDENTIFIER);
              *url_rewrite = '\0';
              uri = clean_uri;
***************
*** 433,439 ****
              if(fraud >= 0) {
                  jk_log(l, JK_LOG_EMERG, 
                         "In jk_uri_worker_map_t::map_uri_to_worker, found a security fraud in '%s'\n",
!                        uri);    
                  return uw_map->maps[fraud].worker_name;
              }
         }        
--- 433,439 ----
              if(fraud >= 0) {
                  jk_log(l, JK_LOG_EMERG, 
                         "In jk_uri_worker_map_t::map_uri_to_worker, found a security fraud in '%s'\n",
!                        uri);
                  return uw_map->maps[fraud].worker_name;
              }
         }        
***************
*** 441,447 ****
          jk_log(l, JK_LOG_ERROR, 
                 "In jk_uri_worker_map_t::map_uri_to_worker, wrong parameters\n");    
      }
- 
      jk_log(l, JK_LOG_DEBUG, 
             "jk_uri_worker_map_t::map_uri_to_worker, done without a match\n"); 
  
--- 441,446 ----
