1
0
mirror of https://github.com/JustKato/FreePad.git synced 2026-02-23 15:50:46 +02:00

# Updated Looks, Syntax Highlights and more

* Moved all CDN libraries into /static/vendor
+ Implemented syntax highlight with hljs
* Updated the sanitization to include `.`
This commit is contained in:
2022-06-01 17:43:05 +03:00
parent 70b671c0be
commit 3dc09cae64
13 changed files with 1393 additions and 51 deletions

View File

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