tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1203504 - /tomcat/jk/trunk/native/iis/jk_isapi_plugin.c
Date Fri, 18 Nov 2011 06:40:14 GMT
Author: mturk
Date: Fri Nov 18 06:40:14 2011
New Revision: 1203504

URL: http://svn.apache.org/viewvc?rev=1203504&view=rev
Log:
Convert to uppercase only safe chars

Modified:
    tomcat/jk/trunk/native/iis/jk_isapi_plugin.c

Modified: tomcat/jk/trunk/native/iis/jk_isapi_plugin.c
URL: http://svn.apache.org/viewvc/tomcat/jk/trunk/native/iis/jk_isapi_plugin.c?rev=1203504&r1=1203503&r2=1203504&view=diff
==============================================================================
--- tomcat/jk/trunk/native/iis/jk_isapi_plugin.c (original)
+++ tomcat/jk/trunk/native/iis/jk_isapi_plugin.c Fri Nov 18 06:40:14 2011
@@ -2658,9 +2658,10 @@ static int init_jk(char *serverName)
     StringCbCat(shm_name, MAX_PATH, "_");
     StringCbCat(shm_name, MAX_PATH, extension_uri);
     for(i = 0; i < strlen(shm_name); i++) {
-        shm_name[i] = toupper(shm_name[i]);
         if (!isalnum((unsigned char)shm_name[i]))
             shm_name[i] = '_';
+        else
+            shm_name[i] = toupper(shm_name[i]);
     }
 
     jk_set_worker_def_cache_size(DEFAULT_WORKER_THREADS);



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


Mime
View raw message