diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-05-14 19:02:41 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-05-14 19:02:41 -0500 |
| commit | 38cdbb2a30358a509fd1c080747c4ad8101cd344 (patch) | |
| tree | 2c0a831ac3b8af8d6aa967c978557424048ea53e | |
| parent | f13782644f835162186d1630809ee8508600cf9b (diff) | |
| download | slskd-38cdbb2a30358a509fd1c080747c4ad8101cd344.tar.gz | |
revert option tweaks
| -rw-r--r-- | src/slskd/Core/Options.cs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index 90a72f7d..51b3cab1 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -882,10 +882,6 @@ namespace slskd { results.Add(new ValidationResult($"Share '{share.Raw}' is invalid; aliases may not contain path separators '/' or '\\'")); } - else if (share.Alias == "." || share.Alias == "..") - { - results.Add(new ValidationResult($"Share '{share.Raw}' is invalid; aliases may not be path traversal characters '.' or '..'")); - } } return results; @@ -2045,7 +2041,6 @@ namespace slskd [EnvironmentVariable("CONTENT_PATH")] [Description("path to static web content")] [StringLength(255, MinimumLength = 1)] - [RelativePath] [DirectoryExists(relativeToApplicationDirectory: true)] [RequiresRestart] public string ContentPath { get; init; } = "wwwroot"; |
