aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Common/Validation/RelativePathAttribute.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/slskd/Common/Validation/RelativePathAttribute.cs')
-rw-r--r--src/slskd/Common/Validation/RelativePathAttribute.cs8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/slskd/Common/Validation/RelativePathAttribute.cs b/src/slskd/Common/Validation/RelativePathAttribute.cs
index edaef1be..64e418b1 100644
--- a/src/slskd/Common/Validation/RelativePathAttribute.cs
+++ b/src/slskd/Common/Validation/RelativePathAttribute.cs
@@ -49,15 +49,9 @@ 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;
}
}
-} \ No newline at end of file
+}