Skip to content

Commit

Permalink
Merge pull request mindoc-org#536 from liyang1009/patch-1
Browse files Browse the repository at this point in the history
fix ReplaceAll function not defined error
  • Loading branch information
lifei6671 authored Sep 19, 2019
2 parents f1b6594 + cfd870f commit b7d8de8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/DocumentModel.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ func (item *Document) Processor() *Document {
selection.SetAttr("href", "#")
return
}
val = strings.ReplaceAll(strings.ToLower(val), " ", "")
val = strings.Replace(strings.ToLower(val), " ", "",-1)
//移除危险脚本链接
if strings.HasPrefix(val, "data:text/html") ||
strings.HasPrefix(val, "vbscript:") ||
Expand Down

0 comments on commit b7d8de8

Please sign in to comment.