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 4900473 commit b4b8bfcCopy full SHA for b4b8bfc
apps/internal/local/server.go
@@ -143,9 +143,10 @@ func (s *Server) handler(w http.ResponseWriter, r *http.Request) {
143
headerErr := q.Get("error")
144
if headerErr != "" {
145
desc := html.EscapeString(q.Get("error_description"))
146
+ escapedHeaderErr := html.EscapeString(headerErr)
147
// Note: It is a little weird we handle some errors by not going to the failPage. If they all should,
148
// change this to s.error() and make s.error() write the failPage instead of an error code.
- _, _ = w.Write([]byte(fmt.Sprintf(failPage, headerErr, desc)))
149
+ _, _ = w.Write([]byte(fmt.Sprintf(failPage, escapedHeaderErr, desc)))
150
s.putResult(Result{Err: fmt.Errorf("%s", desc)})
151
152
return
0 commit comments