summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/models/GitNote.java
diff options
context:
space:
mode:
authorFlorian Zschocke <florian.zschocke@devolo.de>2019-06-10 16:37:15 +0200
committerFlorian Zschocke <florian.zschocke@devolo.de>2019-06-10 16:37:15 +0200
commitd52dfc25d592b3e88ace4bcd30aff1fb665b88e5 (patch)
treeeb12527e8326144c45e79d20924442597c2c528d /src/main/java/com/gitblit/models/GitNote.java
parente57a8461c0f8cd9fda3e859abdcea93d80879b1d (diff)
downloadgitblit-d52dfc25d592b3e88ace4bcd30aff1fb665b88e5.tar.gz
gitblit-d52dfc25d592b3e88ace4bcd30aff1fb665b88e5.zip
Do not resolve symbolic links to repositories.
When symbolic links under the base repository folder point to repositories outside the base repository folder, the forming of relative repository names failed and resulted in NullPointerExceptions. Create the relative path by not following symbolic links, i.e. the link name is taken as is and not resolved to the external path. This also changes the whole `exactPath` method to work on Paths, instead of Files. Fixes #891 and fixes #837.
Diffstat (limited to 'src/main/java/com/gitblit/models/GitNote.java')
0 files changed, 0 insertions, 0 deletions