diff options
| author | Daniel <107576740+maskedmaxx@users.noreply.github.com> | 2026-05-20 20:55:17 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-20 20:55:17 -0400 |
| commit | 96b62ac8596a8ba2c028b88964ff76a8aad3e5bf (patch) | |
| tree | b55aa04d606b258b32fd48c1183507a4a16c090d /src/slskd/Common/Validation/RelativePathAttribute.cs | |
| parent | 61703575cf9038f6a0de89bb5b9be44431439618 (diff) | |
| parent | 03b35a5ababfd7bc2d0af053d8622a14cdd6b8fe (diff) | |
| download | slskd-96b62ac8596a8ba2c028b88964ff76a8aad3e5bf.tar.gz | |
Merge branch 'master' into fix/issue-1726-relay-controller-trailing-slash
Diffstat (limited to 'src/slskd/Common/Validation/RelativePathAttribute.cs')
| -rw-r--r-- | src/slskd/Common/Validation/RelativePathAttribute.cs | 8 |
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 +} |
