Browse Source

ensure template does not double-escape URL

Signed-off-by: Bob Callaway <bob.callaway@gmail.com>
pull/2290/head
Bob Callaway 5 years ago
parent
commit
2e0041f95f
  1. 3
      server/handlers.go
  2. 2
      server/templates.go

3
server/handlers.go

@ -6,6 +6,7 @@ import (
"encoding/base64"
"encoding/json"
"fmt"
"html/template"
"net/http"
"net/url"
"path"
@ -174,7 +175,7 @@ func (s *Server) handleAuthorization(w http.ResponseWriter, r *http.Request) {
ID: conn.ID,
Name: conn.Name,
Type: conn.Type,
URL: connURL.String(),
URL: template.URL(connURL.String()),
}
}

2
server/templates.go

@ -244,7 +244,7 @@ var scopeDescriptions = map[string]string{
type connectorInfo struct {
ID string
Name string
URL string
URL template.URL
Type string
}

Loading…
Cancel
Save