Skip to content

Commit 01e71e2

Browse files
authored
Fix the secret regexp pattern on web page (#26910)
The error is caused by the web page not handling the post form failure, which is 400 bad requests in this case.
1 parent bfa22a4 commit 01e71e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/shared/secrets/add_list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
id="secret-name"
6464
name="name"
6565
value="{{.name}}"
66-
pattern="^[a-zA-Z_][a-zA-Z0-9_]*$"
66+
pattern="^(?!GITEA_|GITHUB_)[a-zA-Z_][a-zA-Z0-9_]*$"
6767
placeholder="{{.locale.Tr "secrets.creation.name_placeholder"}}"
6868
>
6969
</div>

0 commit comments

Comments
 (0)