tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/webapps/manager/WEB-INF/classes/org/apache/catalina/manager StatusTransformer.java
Date Tue, 23 Dec 2003 19:10:05 GMT
remm        2003/12/23 11:10:05

  Modified:    webapps/manager/WEB-INF/classes/org/apache/catalina/manager
                        StatusTransformer.java
  Log:
  - Filter out bad web module names.
  
  Revision  Changes    Path
  1.10      +8 -4      jakarta-tomcat-catalina/webapps/manager/WEB-INF/classes/org/apache/catalina/manager/StatusTransformer.java
  
  Index: StatusTransformer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/manager/WEB-INF/classes/org/apache/catalina/manager/StatusTransformer.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- StatusTransformer.java	23 Dec 2003 18:50:07 -0000	1.9
  +++ StatusTransformer.java	23 Dec 2003 19:10:04 -0000	1.10
  @@ -561,6 +561,10 @@
                   if (webModuleName.startsWith("//")) {
                       webModuleName = webModuleName.substring(2);
                   }
  +                int slash = webModuleName.indexOf("/");
  +                if (slash == -1) {
  +                    continue;
  +                }
   
                   writer.print("<a href=\"#" + (count++) + ".0\">");
                   writer.print(webModuleName);
  
  
  

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


Mime
View raw message