ensure template does not double-escape URL

Signed-off-by: Bob Callaway <bob.callaway@gmail.com>
This commit is contained in:
Bob Callaway 2021-10-06 10:16:55 -04:00
parent 8fd69c16f5
commit 2e0041f95f
2 changed files with 3 additions and 2 deletions

View File

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

View File

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