From a648fa0d315915f17a119a9b3b38316280a71146 Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 22 Mar 2020 15:55:09 +0100 Subject: using the path provided in the url --- src/http/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/http/http.go') 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) -- cgit 1.4.1