struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mr...@apache.org
Subject cvs commit: jakarta-struts/src/share/org/apache/struts/config ActionConfigMatcher.java
Date Mon, 05 Jan 2004 18:50:00 GMT
mrdon       2004/01/05 10:50:00

  Modified:    src/share/org/apache/struts/config ActionConfigMatcher.java
  Log:
  Better handle case when path attribute is empty
  PR: 25909
  Submitted by: Roberto Tyley
  
  Revision  Changes    Path
  1.5       +4 -4      jakarta-struts/src/share/org/apache/struts/config/ActionConfigMatcher.java
  
  Index: ActionConfigMatcher.java
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/config/ActionConfigMatcher.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ActionConfigMatcher.java	25 Oct 2003 01:39:54 -0000	1.4
  +++ ActionConfigMatcher.java	5 Jan 2004 18:49:59 -0000	1.5
  @@ -182,7 +182,7 @@
           }
           
           config.setName(convertParam(orig.getName(), vars));
  -        if (path.charAt(0) != '/') {
  +        if (path.length() == 0 || path.charAt(0) != '/') {
               path = "/" + path;
           }    
           config.setPath(path);
  
  
  

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


Mime
View raw message