ensure template does not double-escape URL
Signed-off-by: Bob Callaway <bob.callaway@gmail.com>
This commit is contained in:
parent
8fd69c16f5
commit
2e0041f95f
@ -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()),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -244,7 +244,7 @@ var scopeDescriptions = map[string]string{
|
||||
type connectorInfo struct {
|
||||
ID string
|
||||
Name string
|
||||
URL string
|
||||
URL template.URL
|
||||
Type string
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user