Skip to content

Commit

Permalink
Revert "Fix code scanning alert #3: Reflected cross-site scripting"
Browse files Browse the repository at this point in the history
This reverts commit 4e20603.
  • Loading branch information
statulr committed Sep 19, 2024
1 parent 4e20603 commit 87757fb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions handlers/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"database/sql"
"encoding/hex"
"fmt"
"html"
"log"
"net/http"
"strings"
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 87757fb

Please sign in to comment.