You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mt...@apache.org on 2007/02/26 20:11:23 UTC

svn commit: r511952 - /tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c

Author: mturk
Date: Mon Feb 26 11:11:22 2007
New Revision: 511952

URL: http://svn.apache.org/viewvc?view=rev&rev=511952
Log:
Use r->filename because mod_dir or mod_alias could already set that

Modified:
    tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c

Modified: tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c?view=diff&rev=511952&r1=511951&r2=511952
==============================================================================
--- tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c Mon Feb 26 11:11:22 2007
@@ -2705,13 +2705,21 @@
                 }
             }
             else if (conf->strip_session == JK_TRUE) {
-                char *jsessionid = strstr(r->uri, JK_PATH_SESSION_IDENTIFIER);
-                if (jsessionid) {
-                    if (JK_IS_DEBUG_LEVEL(conf->log))
-                        jk_log(conf->log, JK_LOG_DEBUG,
-                               "removing session identifier [%s] for non servlet url [%s]",
-                               jsessionid, r->uri);
-                    *jsessionid = '\0';
+                char *jsessionid;
+                if (r->uri) {
+                    jsessionid = strstr(r->uri, JK_PATH_SESSION_IDENTIFIER);
+                    if (jsessionid) {
+                        if (JK_IS_DEBUG_LEVEL(conf->log))
+                            jk_log(conf->log, JK_LOG_DEBUG,
+                                   "removing session identifier [%s] for non servlet url [%s]",
+                                   jsessionid, r->uri);
+                        *jsessionid = '\0';
+                    }
+                }
+                if (r->filename) {
+                    jsessionid = strstr(r->filename, JK_PATH_SESSION_IDENTIFIER);
+                    if (jsessionid)
+                        *jsessionid = '\0';
                 }
             }
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org