mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-02 11:35:57 +01:00
do not return directories from WebResourceLoader
This commit is contained in:
@@ -93,7 +93,7 @@ public class PathWebResourceLoader implements WebResourceLoader
|
||||
URL resource = null;
|
||||
Path file = directory.resolve(filePath(path));
|
||||
|
||||
if (Files.exists(file))
|
||||
if (Files.exists(file) && ! Files.isDirectory(file))
|
||||
{
|
||||
logger.trace("found path {} at {}", path, file);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user