From 87757fb766f2394e8efcddc7be6910c09fdcc570 Mon Sep 17 00:00:00 2001 From: statulr <122219240+statulr@users.noreply.github.com> Date: Thu, 19 Sep 2024 18:52:57 -0400 Subject: [PATCH] Revert "Fix code scanning alert #3: Reflected cross-site scripting" This reverts commit 4e20603affc129e285d16f0d9ebb861f429eb0a4. --- handlers/index.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/handlers/index.go b/handlers/index.go index a03d445..1b45a16 100644 --- a/handlers/index.go +++ b/handlers/index.go @@ -5,7 +5,6 @@ import ( "database/sql" "encoding/hex" "fmt" - "html" "log" "net/http" "strings" @@ -66,7 +65,7 @@ func Main(w http.ResponseWriter, r *http.Request) { } w.WriteHeader(http.StatusCreated) - w.Write([]byte(fmt.Sprintf("Location: /s/%s", html.EscapeString(customCode)))) + w.Write([]byte(fmt.Sprintf("Location: /s/%s", customCode))) return }