diff options
author | Emile <hanemile@protonmail.com> | 2020-03-22 15:55:09 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2020-03-22 15:55:09 +0100 |
commit | a648fa0d315915f17a119a9b3b38316280a71146 (patch) | |
tree | cbeb4b8188abb1385d86342ef2c4c74ec22bc754 /src/http | |
parent | ff3b9605ff4d4cbd592eb39600dc52b781f3f5e0 (diff) |
using the path provided in the url
Diffstat (limited to 'src/http')
-rw-r--r-- | src/http/http.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/http.go b/src/http/http.go index b0e0145..7f9b51c 100644 --- a/src/http/http.go +++ b/src/http/http.go @@ -295,7 +295,7 @@ func pathHandler(w http.ResponseWriter, r *http.Request) { // breadcrumbs get's the breadcrumbs from the request func breadcrumbs(r *http.Request) structs.Breadcrumbs { - request := r.RequestURI + request := r.URL.Path // mitigate path traversals strippedRequest := strings.Replace(request, "..", "", -1) |