diff options
author | r <r@freesoftwareextremist.com> | 2023-10-22 11:11:21 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2023-10-22 11:11:21 +0000 |
commit | 9b053e32ec8a42c74f3c09d28a8df4086b5b2945 (patch) | |
tree | f27a1b783a323e9a71558346276ff7d79f87dc1e | |
parent | 67b13c71baea56eeb15532ca1b1377f6da8d18ac (diff) | |
download | bloat-9b053e32ec8a42c74f3c09d28a8df4086b5b2945.tar.gz bloat-9b053e32ec8a42c74f3c09d28a8df4086b5b2945.zip |
Fix replace syntax
-rw-r--r-- | service/service.go | 2 |
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[:]) |