mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2025-06-30 07:41:09 +02:00
Do not allow \ or @ in URL
This commit is contained in:
@ -7,7 +7,6 @@ import (
|
||||
"log"
|
||||
"net/http"
|
||||
"os"
|
||||
"regexp"
|
||||
"strings"
|
||||
|
||||
"github.com/markbates/pkger"
|
||||
@ -42,9 +41,6 @@ var (
|
||||
|
||||
// Preload templates
|
||||
templates *template.Template
|
||||
|
||||
// Precompile regex
|
||||
validPath = regexp.MustCompile("^/[a-z0-9@_\\-]*/?$")
|
||||
)
|
||||
|
||||
// Load templates with pkger
|
||||
|
Reference in New Issue
Block a user