mirror of
https://github.com/kovetskiy/mark.git
synced 2025-04-23 21:32:41 +08:00
Fix usage of strings.ReplaceAll
This commit is contained in:
parent
eba2396010
commit
2aa1606d11
@ -282,7 +282,7 @@ func GetChecksum(reader io.Reader) (string, error) {
|
||||
func parseAttachmentLink(attachLink string) string {
|
||||
uri, err := url.ParseRequestURI(attachLink)
|
||||
if err != nil {
|
||||
return strings.ReplaceAll("&", "&", attachLink)
|
||||
return strings.ReplaceAll(attachLink, "&", "&")
|
||||
} else {
|
||||
return uri.Path +
|
||||
"?" + url.QueryEscape(uri.Query().Encode())
|
||||
|
Loading…
x
Reference in New Issue
Block a user