You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by mr...@apache.org on 2004/01/05 19:50:00 UTC

cvs commit: jakarta-struts/src/share/org/apache/struts/config ActionConfigMatcher.java

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