Skip to content

Commit a5c8d13

Browse files
authored
Merge branch 'main' into kd/ci-playwright_go_test
2 parents bbe663a + 970288f commit a5c8d13

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

custom/conf/app.example.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,7 @@ PATH =
12311231
;; Define allowed algorithms and their minimum key length (use -1 to disable a type)
12321232
;ED25519 = 256
12331233
;ECDSA = 256
1234-
;RSA = 2048
1234+
;RSA = 2047 ; we allow 2047 here because an otherwise valid 2048 bit RSA key can be reported as having 2047 bit length
12351235
;DSA = -1 ; set to 1024 to switch on
12361236

12371237
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

docs/content/doc/advanced/config-cheat-sheet.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ Define allowed algorithms and their minimum key length (use -1 to disable a type
621621

622622
- `ED25519`: **256**
623623
- `ECDSA`: **256**
624-
- `RSA`: **2048**
624+
- `RSA`: **2047**: We set 2047 here because an otherwise valid 2048 RSA key can be reported as 2047 length.
625625
- `DSA`: **-1**: DSA is now disabled by default. Set to **1024** to re-enable but ensure you may need to reconfigure your SSHD provider
626626

627627
## Webhook (`webhook`)

models/issues/milestone.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ func (opts GetMilestonesOption) toCond() builder.Cond {
361361
}
362362

363363
if len(opts.Name) != 0 {
364-
cond = cond.And(builder.Like{"name", opts.Name})
364+
cond = cond.And(builder.Like{"UPPER(name)", strings.ToUpper(opts.Name)})
365365
}
366366

367367
return cond

modules/setting/setting.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ var (
170170
ServerMACs: []string{"[email protected]", "hmac-sha2-256", "hmac-sha1"},
171171
KeygenPath: "ssh-keygen",
172172
MinimumKeySizeCheck: true,
173-
MinimumKeySizes: map[string]int{"ed25519": 256, "ed25519-sk": 256, "ecdsa": 256, "ecdsa-sk": 256, "rsa": 2048},
173+
MinimumKeySizes: map[string]int{"ed25519": 256, "ed25519-sk": 256, "ecdsa": 256, "ecdsa-sk": 256, "rsa": 2047},
174174
ServerHostKeys: []string{"ssh/gitea.rsa", "ssh/gogs.rsa"},
175175
AuthorizedKeysCommandTemplate: "{{.AppPath}} --config={{.CustomConf}} serv key-{{.Key.ID}}",
176176
PerWriteTimeout: PerWriteTimeout,

templates/base/head_navbar.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<img class="ui mini image" width="30" height="30" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{.locale.Tr "logo"}}" aria-hidden="true">
99
</a>
1010
{{if .IsSigned}}
11-
<a href="{{AppSubUrl}}/notifications" class="tooltip mobile-only" data-content='{{.i18n.Tr "notifications"}}'>
11+
<a href="{{AppSubUrl}}/notifications" class="tooltip mobile-only" data-content='{{.locale.Tr "notifications"}}'>
1212
<span class="text black">
1313
<span class="fitted">{{svg "octicon-bell"}}</span>
1414
<span class="ui red label mini{{if not $notificationUnreadCount}} hidden{{end}} notification_count">
@@ -114,7 +114,7 @@
114114
</div>
115115
</div>
116116

117-
<a href="{{AppSubUrl}}/notifications" class="m-4 text black tooltip not-mobile" data-content='{{.locale.Tr "notifications"}}'>
117+
<a href="{{AppSubUrl}}/notifications" class="item tooltip not-mobile" data-content='{{.locale.Tr "notifications"}}'>
118118
<span class="text">
119119
<span class="fitted">{{svg "octicon-bell"}}</span>
120120
<span class="ui red label {{if not $notificationUnreadCount}}hidden{{end}} notification_count">

web_src/less/_base.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,7 +1329,7 @@ footer {
13291329
@media @mediaMdAndUp {
13301330
.mobile-only,
13311331
.ui.button.mobile-only {
1332-
display: none;
1332+
display: none !important;
13331333
}
13341334

13351335
// has the same behaviour of sr-only, hiding the content for
@@ -1341,7 +1341,7 @@ footer {
13411341

13421342
@media @mediaSm {
13431343
.not-mobile {
1344-
display: none;
1344+
display: none !important;
13451345
}
13461346
}
13471347

0 commit comments

Comments
 (0)