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:24:08 GMT
billbarker    2004/02/06 21:24:08

  Modified:    catalina/src/share/org/apache/catalina/realm RealmBase.java
  Log:
  Fix stupid off-by-one bug.
  
  Before, a url-pattern of /s/* would match /simon/rant.html
  
  Reported by: Yann Cebron <yannc76@yahoo.de>
  
  Revision  Changes    Path
  1.28      +5 -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.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- RealmBase.java	26 Jan 2004 20:19:11 -0000	1.27
  +++ RealmBase.java	7 Feb 2004 05:24:08 -0000	1.28
  @@ -511,7 +511,7 @@
                               matched = true;
                               length = pattern.length();
                           } else if(pattern.regionMatches(0,uri,0,
  -                                                        pattern.length()-2)) {
  +                                                        pattern.length()-1)) {
                               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