Browse Source

shrug.

tags/v0.4.3
Dashie der otter 2 years ago
parent
commit
4a36884451
Signed by: dashie <rhaamo@leloop.org> GPG Key ID: C2D57B325840B755
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      stuff/sanitize/sanitize.go

+ 1
- 1
stuff/sanitize/sanitize.go View File

@@ -133,7 +133,7 @@ func cleanString(s string, r *regexp.Regexp) string {
}

// We are very restrictive as this could be intended for ascii url slugs
var illegalPath = regexp.MustCompile(`[^[:alnum:]\~\-\_\.]/`)
var illegalPath = regexp.MustCompile(`[^[:alnum:]\~\-\_\./]`)

var slashes = regexp.MustCompile(`^[/]+`)



Loading…
Cancel
Save