Alias should be absolute not relative
This commit is contained in:
Greg Wilkins 2016-07-06 15:30:39 +10:00
parent c913bc7150
commit 5b50e41e7e
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ public class PathResource extends Resource
try
{
if (Files.isSymbolicLink(path))
return Files.readSymbolicLink(path);
return path.getParent().resolve(Files.readSymbolicLink(path));
if (Files.exists(path))
{
Path real = abs.toRealPath(FOLLOW_LINKS);