We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36ff880 commit 37c70e2Copy full SHA for 37c70e2
apps/internal/local/server.go
@@ -7,6 +7,7 @@ package local
7
import (
8
"context"
9
"fmt"
10
+ "html"
11
"net"
12
"net/http"
13
"strconv"
@@ -141,7 +142,7 @@ func (s *Server) handler(w http.ResponseWriter, r *http.Request) {
141
142
143
headerErr := q.Get("error")
144
if headerErr != "" {
- desc := q.Get("error_description")
145
+ desc := html.EscapeString(q.Get("error_description"))
146
// Note: It is a little weird we handle some errors by not going to the failPage. If they all should,
147
// change this to s.error() and make s.error() write the failPage instead of an error code.
148
_, _ = w.Write([]byte(fmt.Sprintf(failPage, headerErr, desc)))
0 commit comments