File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/org/omnifaces/config Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -305,11 +305,11 @@ private static boolean isExactMatch(String urlPattern, String url) {
305
305
}
306
306
307
307
private static boolean isPrefixMatch (String urlPattern , String url ) {
308
- return urlPattern .endsWith ("/*" ) ? url .startsWith (urlPattern .substring (0 , urlPattern .length () - 2 )) : false ;
308
+ return urlPattern .endsWith ("/*" ) && ( url + "/" ) .startsWith (urlPattern .substring (0 , urlPattern .length () - 1 )) ;
309
309
}
310
310
311
311
private static boolean isSuffixMatch (String urlPattern , String url ) {
312
- return urlPattern .startsWith ("*." ) ? url .endsWith (urlPattern .substring (1 )) : false ;
312
+ return urlPattern .startsWith ("*." ) && url .endsWith (urlPattern .substring (1 ));
313
313
}
314
314
315
315
private static boolean isRoleMatch (Set <String > roles , String role ) {
You can’t perform that action at this time.
0 commit comments