mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 09:00:26 +00:00
Fix OOB
This commit is contained in:
parent
69dd83e2e4
commit
a09a3238cf
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ public class ContextualFileReference {
|
|||
public String serialize() {
|
||||
var start = getDataDir();
|
||||
var normalizedPath = normalized(path);
|
||||
if (normalizedPath.startsWith(start)) {
|
||||
if (normalizedPath.startsWith(start) && !normalizedPath.equals(start)) {
|
||||
return "<DATA>" + "/" + FileNames.relativize(start, normalizedPath);
|
||||
}
|
||||
return path;
|
||||
|
|
Loading…
Reference in a new issue