Sanitize title input for activities
This commit is contained in:
parent
1ffa6c3461
commit
e21e3498f7
@ -13,4 +13,4 @@ component ActivityPost(post *arn.Post, user *arn.User)
|
|||||||
//- span commented on
|
//- span commented on
|
||||||
//- a(href=post.Parent().Link())= post.Parent().TitleByUser(user)
|
//- a(href=post.Parent().Link())= post.Parent().TitleByUser(user)
|
||||||
|
|
||||||
Postable(post, user, fmt.Sprintf(`<p class="activity-header"><a href="%s">%s</a></p>`, post.Parent().Link(), post.Parent().TitleByUser(user)), "")
|
Postable(post, user, fmt.Sprintf(`<p class="activity-header"><a href="%s">%s</a></p>`, post.Parent().Link(), html.EscapeString(post.Parent().TitleByUser(user))), "")
|
Loading…
Reference in New Issue
Block a user