mirror of
https://code.dumpstack.io/tools/wi.git
synced 2024-11-13 05:59:19 +02:00
Fix replace url with id
This commit is contained in:
parent
69d33189ad
commit
50b0c0a520
|
@ -38,8 +38,10 @@ func parseLink(db *sql.DB, oldPage, value string, req *http.Request) (htmlPage s
|
|||
}
|
||||
}
|
||||
|
||||
htmlPage = oldPage
|
||||
|
||||
for _, s := range []string{value, html.EscapeString(value)} {
|
||||
htmlPage = strings.Replace(oldPage, "\""+s+"\"",
|
||||
htmlPage = strings.Replace(htmlPage, "\""+s+"\"",
|
||||
"\""+fmt.Sprintf("%d", linkNo)+"\"", -1)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue