Trim trailing slashes to prevent OAuth2 URI mismatch errors (#4204)
Closes https://gitlab.com/gitlab-org/gitlab-mattermost/issues/84
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
d195eea07d
Коммит
d4268cf0d8
@@ -364,7 +364,7 @@ func (c *Context) SetTeamURLFromSession() {
|
||||
}
|
||||
|
||||
func (c *Context) SetSiteURL(url string) {
|
||||
c.siteURL = url
|
||||
c.siteURL = strings.TrimRight(url, "/")
|
||||
}
|
||||
|
||||
func (c *Context) GetTeamURLFromTeam(team *model.Team) string {
|
||||
|
||||
Ссылка в новой задаче
Block a user