Skip to content

Commit 694ae48

Browse files
authored
Merge branch 'release/v1.24' into backport-35591-v1.24
2 parents 677c07d + b854930 commit 694ae48

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

modules/git/url/url_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ func TestParseGitURLs(t *testing.T) {
3434
},
3535
},
3636
{
37-
kase: "git@[fe80:14fc:cec5:c174:d88%2510]:go-gitea/gitea.git",
37+
kase: "git@[fe80::14fc:cec5:c174:d88%2510]:go-gitea/gitea.git",
3838
expected: &GitURL{
3939
URL: &url.URL{
4040
Scheme: "ssh",
4141
User: url.User("git"),
42-
Host: "[fe80:14fc:cec5:c174:d88%10]",
42+
Host: "[fe80::14fc:cec5:c174:d88%10]",
4343
Path: "go-gitea/gitea.git",
4444
},
4545
extraMark: 1,
@@ -137,11 +137,11 @@ func TestParseGitURLs(t *testing.T) {
137137
},
138138
},
139139
{
140-
kase: "https://[fe80:14fc:cec5:c174:d88%2510]:20/go-gitea/gitea.git",
140+
kase: "https://[fe80::14fc:cec5:c174:d88%2510]:20/go-gitea/gitea.git",
141141
expected: &GitURL{
142142
URL: &url.URL{
143143
Scheme: "https",
144-
Host: "[fe80:14fc:cec5:c174:d88%10]:20",
144+
Host: "[fe80::14fc:cec5:c174:d88%10]:20",
145145
Path: "/go-gitea/gitea.git",
146146
},
147147
extraMark: 0,

routers/web/auth/oauth2_provider.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,7 @@ func handleAuthorizationCode(ctx *context.Context, form forms.AccessTokenForm, s
639639
ErrorCode: oauth2_provider.AccessTokenErrorCodeInvalidRequest,
640640
ErrorDescription: "cannot proceed your request",
641641
})
642+
return
642643
}
643644
resp, tokenErr := oauth2_provider.NewAccessTokenResponse(ctx, authorizationCode.Grant, serverKey, clientKey)
644645
if tokenErr != nil {

0 commit comments

Comments
 (0)