diff options
Diffstat (limited to 'gateway/gateway.go')
-rw-r--r-- | gateway/gateway.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gateway/gateway.go b/gateway/gateway.go index e699251f..d4c84650 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -481,7 +481,7 @@ func (gw *Gateway) handleFiles(msg *config.Message) { ext := filepath.Ext(fi.Name) fi.Name = fi.Name[0 : len(fi.Name)-len(ext)] fi.Name = reg.ReplaceAllString(fi.Name, "_") - fi.Name = fi.Name + ext + fi.Name += ext sha1sum := fmt.Sprintf("%x", sha1.Sum(*fi.Data))[:8] |