diff options
author | clsr <clsr@clsr.net> | 2016-11-11 17:27:39 +0100 |
---|---|---|
committer | clsr <clsr@clsr.net> | 2016-11-11 17:27:39 +0100 |
commit | 3abf0f3d7ad277404fd94a605a8070f5c23017ed (patch) | |
tree | e07101db36ca0ca4fd3cb2a8e8a19e9dd85f6977 | |
parent | cf4adc19b165f848714cd6e6e073cea97baf483f (diff) | |
download | gomf-3abf0f3d7ad277404fd94a605a8070f5c23017ed.tar.gz gomf-3abf0f3d7ad277404fd94a605a8070f5c23017ed.zip |
Fix --filter-extv0.4.4
-rw-r--r-- | main.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -85,6 +85,9 @@ func main() { storage = NewStorage("upload") storage.FilterExt = strings.Split(*filterExt, ",") + for i := range storage.FilterExt { + storage.FilterExt[i] = "." + storage.FilterExt[i] + } storage.FilterMime = strings.Split(*filterMime, ",") storage.Whitelist = *whitelist storage.IdLength = *idLength |