tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper JspC.java
Date Fri, 01 Jul 2005 20:31:47 GMT
markt       2005/07/01 13:31:47

  Modified:    jasper2/src/share/org/apache/jasper Tag: tomcat_4_branch
                        JspC.java
  Log:
  Fix bug 25597. Prevent ArrayIndexOutOfBoundsException by ensuring we look at the first file
rather than the second that may not exist.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.12.2.14 +1 -1      jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspC.java
  
  Index: JspC.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspC.java,v
  retrieving revision 1.12.2.13
  retrieving revision 1.12.2.14
  diff -u -r1.12.2.13 -r1.12.2.14
  --- JspC.java	29 Mar 2005 21:45:42 -0000	1.12.2.13
  +++ JspC.java	1 Jul 2005 20:31:47 -0000	1.12.2.14
  @@ -574,7 +574,7 @@
                       
                       String fParent = f.getParent();
                       if (fParent == null) {
  -                        f = new File(args[argPos]);
  +                        f = new File(args[argPos-1]);
                           fParent = f.getParent();
                           if (fParent == null) {
                               fParent = File.separator;
  
  
  

---------------------------------------------------------------------
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