aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Common/Validation/RelativePathAttribute.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-05-17 13:40:48 -0500
committerJP Dillingham <jp@dillingham.me>2026-05-17 13:40:48 -0500
commit946333991d4f06aa139e9659952b2ce2ca9e988d (patch)
tree9f77ce336372a3e96bad8a1b7cbb6604b088a992 /src/slskd/Common/Validation/RelativePathAttribute.cs
parent5d16f6f9cccf72c29b8bbf206c851005e3375d79 (diff)
downloadslskd-946333991d4f06aa139e9659952b2ce2ca9e988d.tar.gz
mess with tests and validation
Diffstat (limited to 'src/slskd/Common/Validation/RelativePathAttribute.cs')
-rw-r--r--src/slskd/Common/Validation/RelativePathAttribute.cs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/slskd/Common/Validation/RelativePathAttribute.cs b/src/slskd/Common/Validation/RelativePathAttribute.cs
index e8865554..64e418b1 100644
--- a/src/slskd/Common/Validation/RelativePathAttribute.cs
+++ b/src/slskd/Common/Validation/RelativePathAttribute.cs
@@ -49,12 +49,6 @@ namespace slskd.Validation
{
return new ValidationResult($"The {validationContext.DisplayName} field must be a relative path.");
}
-
- // unrelated to absolute/relative check; we disallow traversal segments across the board so check while we're here
- if (FileSafety.ContainsTraversalSegments(path))
- {
- return new ValidationResult($"The {validationContext.DisplayName} field contains one or more unsafe path traversal segments ('.' or '..')");
- }
}
return ValidationResult.Success;