k4n5ha0 commented on code in PR #546:
URL: https://github.com/apache/struts/pull/546#discussion_r863576527


##########
core/src/main/java/com/opensymphony/xwork2/ognl/SecurityMemberAccess.java:
##########
@@ -168,8 +170,20 @@ protected boolean isClassExcluded(Class<?> clazz) {
             return true;
         }
         for (Class<?> excludedClass : excludedClasses) {
-            if (clazz.isAssignableFrom(excludedClass)) {
-                return true;
+            if(excludedClass != Object.class) {
+                if(clazz.getName().startsWith(packageName)){

Review Comment:
   the old check in com.opensymphony.xwork2.ognl.   isn't change , also use  
clazz.isAssignableFrom(excludedClass)
   the new check use excludedClass.isAssignableFrom(clazz)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to