git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@756012 13f79535-47bb-0310-9956-ffa450edef68tags/archiva-1.2
@@ -958,8 +958,18 @@ public class DefaultRepositoryProxyConnectors | |||
return false; | |||
} | |||
if ( !path.startsWith( "/" ) ) | |||
{ | |||
path = "/" + path; | |||
} | |||
for ( String pattern : patterns ) | |||
{ | |||
if ( !pattern.startsWith( "/" ) ) | |||
{ | |||
pattern = "/" + pattern; | |||
} | |||
if ( SelectorUtils.matchPath( pattern, path, false ) ) | |||
{ | |||
return true; |