aboutsummaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
Diffstat (limited to 'service')
-rw-r--r--service/service.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/service.go b/service/service.go
index c925b83..db309ff 100644
--- a/service/service.go
+++ b/service/service.go
@@ -1022,7 +1022,7 @@ func (s *service) SaveSettings(c *client, settings *model.Settings) (err error)
}
// For some reason, browsers convert CRLF to LF before calculating
// the hash of the inline resources.
- settings.CSS = strings.ReplaceAll(settings.CSS, "\x0d\x0a", "\x0a")
+ settings.CSS = strings.Replace(settings.CSS, "\x0d\x0a", "\x0a", -1)
h := sha256.Sum256([]byte(settings.CSS))
settings.CSSHash = base64.StdEncoding.EncodeToString(h[:])