Correct a typo in RequestFilter, that would lead to an NPE in RemoteAddrFilter, Remot...
authorkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 15 Jan 2011 20:33:06 +0000 (20:33 +0000)
committerkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 15 Jan 2011 20:33:06 +0000 (20:33 +0000)
The RequestFilterValve class is not affected by this issue.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1059409 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/filters/RequestFilter.java
webapps/docs/changelog.xml

index a471bf2..a417ebc 100644 (file)
@@ -224,7 +224,7 @@ public abstract class RequestFilter
         }
      
         // Check the allow patterns, if any
-        if (allow != null & allow.matcher(property).matches()) {
+        if (allow != null && allow.matcher(property).matches()) {
             return true;
         }
 
index 7075092..0c1d8bb 100644 (file)
@@ -62,6 +62,9 @@
         Provide additional control over component class loaders, primarily for
         use when embedding. (markt)
       </add>
+      <fix>
+        Fix NPE in RemoteAddrFilter, RemoteHostFilter. (kkolinko)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Jasper">