diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-05-30 21:32:50 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-05-30 21:32:50 -0700 |
| commit | 25f0d77de4489c6759a497617606f2933ca76fc9 (patch) | |
| tree | 4f32ad86c613f506e0b86404cba388536aa6cd42 /hotline | |
| parent | 47f9b49c161e576cf75f0a9be1d47cc7fa2cb62c (diff) | |
Fix upload folder name pattern matching
Diffstat (limited to 'hotline')
| -rw-r--r-- | hotline/file_path.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hotline/file_path.go b/hotline/file_path.go index d5ddd23..f7da298 100644 --- a/hotline/file_path.go +++ b/hotline/file_path.go @@ -68,7 +68,7 @@ func (fp *FilePath) IsUploadDir() bool { return false } - return strings.Contains(strings.ToLower(string(fp.Items[fp.Len()-1].Name)), "uploads") + return strings.Contains(strings.ToLower(string(fp.Items[fp.Len()-1].Name)), "upload") } func (fp *FilePath) Len() uint16 { |