tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/realm RealmBase.java
Date Sat, 07 Feb 2004 05:54:32 GMT
billbarker    2004/02/06 21:54:32

  Modified:    catalina/src/share/org/apache/catalina/realm RealmBase.java
  Log:
  Went back and re-read the spec.
  
  A url-pattern of /protected/* must match a request for /protected.  Hence a special case
for this one.
  
  Revision  Changes    Path
  1.29      +8 -5      jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/realm/RealmBase.java
  
  Index: RealmBase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/realm/RealmBase.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- RealmBase.java	7 Feb 2004 05:24:08 -0000	1.28
  +++ RealmBase.java	7 Feb 2004 05:54:32 -0000	1.29
  @@ -511,7 +511,10 @@
                               matched = true;
                               length = pattern.length();
                           } else if(pattern.regionMatches(0,uri,0,
  -                                                        pattern.length()-1)) {
  +                                                        pattern.length()-1) ||
  +                                  (pattern.length()-2 == uri.length() &&
  +                                   pattern.regionMatches(0,uri,0,
  +                                                        pattern.length()-2))) {
                               matched = true;
                               length = pattern.length();
                           }
  
  
  

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