mirror of
https://github.com/kovetskiy/mark.git
synced 2025-04-24 05:42:40 +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 {
|
func parseAttachmentLink(attachLink string) string {
|
||||||
uri, err := url.ParseRequestURI(attachLink)
|
uri, err := url.ParseRequestURI(attachLink)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return strings.ReplaceAll("&", "&", attachLink)
|
return strings.ReplaceAll(attachLink, "&", "&")
|
||||||
} else {
|
} else {
|
||||||
return uri.Path +
|
return uri.Path +
|
||||||
"?" + url.QueryEscape(uri.Query().Encode())
|
"?" + url.QueryEscape(uri.Query().Encode())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user