diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-05-17 15:55:56 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-17 15:55:56 -0500 |
| commit | c9acb8fbbb045c8b710fb3430084bd3e6490f00b (patch) | |
| tree | b097960843f3e84af6567cce6f473bf79c1f1806 /src/slskd/Common/Validation/RelativePathAttribute.cs | |
| parent | e3b6bd9954ea330402f1c44719a82fd56f173196 (diff) | |
| parent | 338ed57cd52806e3684ccaedd1f19f5eafd4123a (diff) | |
| download | slskd-c9acb8fbbb045c8b710fb3430084bd3e6490f00b.tar.gz | |
Merge pull request #1733 from slskd/validation
Add or adjust several new validation classes
Diffstat (limited to 'src/slskd/Common/Validation/RelativePathAttribute.cs')
| -rw-r--r-- | src/slskd/Common/Validation/RelativePathAttribute.cs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/slskd/Common/Validation/RelativePathAttribute.cs b/src/slskd/Common/Validation/RelativePathAttribute.cs index edaef1be..edbb3483 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; |
