* Fixed Sanitization

This commit is contained in:
Daniel Legt 2022-06-01 18:07:33 +03:00
parent 3dc09cae64
commit 22657cc111
1 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ func HomeRoutes(router *gin.Engine) {
if err == nil {
postName = newPostName
}
postName = sanitize.PathName(sanitize.SingleLine(postName))
postName = sanitize.XSS(sanitize.SingleLine(postName))
post := objects.GetPost(postName)
@ -63,7 +63,7 @@ func HomeRoutes(router *gin.Engine) {
if err == nil {
postName = newPostName
}
postName = sanitize.PathName(sanitize.SingleLine(postName))
postName = sanitize.XSS(sanitize.SingleLine(postName))
p := objects.Post{
Name: postName,