Skip to content

Commit 1e83bd6

Browse files
Fix accidental escaping of SiteURL (#35)
1 parent 0619ab4 commit 1e83bd6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/plugin/api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ func (p *Plugin) openCommentReplyDialog(c *Context, w http.ResponseWriter, r *ht
702702
commentID := request.Context["commentID"].(string)
703703
fileID := request.Context["fileID"].(string)
704704
urlStr := fmt.Sprintf("%s/plugins/%s/api/v1/reply?fileID=%s&commentID=%s",
705-
url.PathEscape(*p.API.GetConfig().ServiceSettings.SiteURL),
705+
*p.API.GetConfig().ServiceSettings.SiteURL,
706706
url.PathEscape(Manifest.Id),
707707
url.QueryEscape(fileID),
708708
url.QueryEscape(commentID))

server/plugin/oauth.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func (p *Plugin) getOAuthConfig() *oauth2.Config {
3838
}
3939

4040
redirectURL := fmt.Sprintf("%s/plugins/%s/oauth/complete",
41-
url.PathEscape(*p.Client.Configuration.GetConfig().ServiceSettings.SiteURL),
41+
*p.Client.Configuration.GetConfig().ServiceSettings.SiteURL,
4242
url.PathEscape(Manifest.Id))
4343

4444
return &oauth2.Config{

0 commit comments

Comments
 (0)