mirror of
https://github.com/jackyzha0/hugo-obsidian.git
synced 2024-06-14 11:42:35 +03:00
fix: target sanitation
This commit is contained in:
parent
5d94c306e6
commit
b724e4aeca
3
util.go
3
util.go
@ -27,7 +27,8 @@ func processTarget(source string) string {
|
|||||||
res, _ = url.PathUnescape(res)
|
res, _ = url.PathUnescape(res)
|
||||||
res = strings.Split(res, "#")[0]
|
res = strings.Split(res, "#")[0]
|
||||||
res = strings.TrimSpace(res)
|
res = strings.TrimSpace(res)
|
||||||
return UnicodeSanitize(res)
|
res = UnicodeSanitize(res)
|
||||||
|
return strings.ReplaceAll(url.PathEscape(res), "%2F", "/")
|
||||||
}
|
}
|
||||||
|
|
||||||
func processSource(source string) string {
|
func processSource(source string) string {
|
||||||
|
Loading…
Reference in New Issue
Block a user