Skip to content

Commit bf301e6

Browse files
committed
introduce paramCannotBeSplitIntoHashAndUuid variable
1 parent 6d80407 commit bf301e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/java/org/fao/geonet/security/GrantViewMdAuthorityFilter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ public void doFilter(ServletRequest servletRequest, ServletResponse servletRespo
8686
return;
8787
}
8888
String hashParam = servletRequest.getParameter("hash");
89-
if (hashParam == null || hashParam.length() < AnonymousAccessLink.getRandomHashLength() + 1) {
89+
boolean paramCannotBeSplitIntoHashAndUuid = hashParam.length() < AnonymousAccessLink.getRandomHashLength() + 1;
90+
if (hashParam == null || paramCannotBeSplitIntoHashAndUuid) {
9091
filterChain.doFilter(servletRequest, servletResponse);
9192
return;
9293
}

0 commit comments

Comments
 (0)