diff options
author | Nanguan Lin <70063547+lng2020@users.noreply.github.com> | 2023-09-06 04:15:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-05 20:15:19 +0000 |
commit | 01e71e2a478be393dabf14e69520b0f8892baf59 (patch) | |
tree | a3f5a14e6be50299f3ecfdaba613bc31560a28c3 /templates/shared/secrets | |
parent | bfa22a473ef01e2556e05189866b1ada42ab5c84 (diff) | |
download | gitea-01e71e2a478be393dabf14e69520b0f8892baf59.tar.gz gitea-01e71e2a478be393dabf14e69520b0f8892baf59.zip |
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.
Diffstat (limited to 'templates/shared/secrets')
-rw-r--r-- | templates/shared/secrets/add_list.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/shared/secrets/add_list.tmpl b/templates/shared/secrets/add_list.tmpl index a80ec314d2..6215eff369 100644 --- a/templates/shared/secrets/add_list.tmpl +++ b/templates/shared/secrets/add_list.tmpl @@ -63,7 +63,7 @@ id="secret-name" name="name" value="{{.name}}" - pattern="^[a-zA-Z_][a-zA-Z0-9_]*$" + pattern="^(?!GITEA_|GITHUB_)[a-zA-Z_][a-zA-Z0-9_]*$" placeholder="{{.locale.Tr "secrets.creation.name_placeholder"}}" > </div> |