Github user shuraa commented on a diff in the pull request:

    https://github.com/apache/wicket/pull/107#discussion_r26284201
  
    --- Diff: 
wicket-core/src/main/java/org/apache/wicket/markup/html/PackageResourceGuard.java
 ---
    @@ -85,7 +85,8 @@ protected boolean acceptAbsolutePath(String path)
                int len = path.length();
                final String ext;
                if (ixExtension <= 0 || ixExtension == len ||
    -                   (path.lastIndexOf(File.separator) + 1) == ixExtension)
    --- End diff --
    
    Check PackageResourceGuardTest:
    
    assertTrue(guard.acceptAbsolutePath("c:\\test\\org\\apache\\.java"));
    assertTrue(guard.acceptAbsolutePath("c:/test/org/apache/.java"));
    
    Under Win one can use both separator styles.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to