aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorNanguan Lin <70063547+lng2020@users.noreply.github.com>2023-09-21 17:03:13 +0800
committerGitHub <noreply@github.com>2023-09-21 09:03:13 +0000
commit218e719ea86883bee75d02684d4bf07f95fa4f55 (patch)
tree8407c68aedb3c8a0b01be884ba13a048abe42f25 /templates
parente46274b5b478f821eb915348a28b114cd4b1eb0a (diff)
downloadgitea-218e719ea86883bee75d02684d4bf07f95fa4f55.tar.gz
gitea-218e719ea86883bee75d02684d4bf07f95fa4f55.zip
Fix the variable regexp pattern on web page (#27161)
same as (https://github.com/go-gitea/gitea/pull/26910)
Diffstat (limited to 'templates')
-rw-r--r--templates/shared/variables/variable_list.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/shared/variables/variable_list.tmpl b/templates/shared/variables/variable_list.tmpl
index a9456321e4..3a389ffaf8 100644
--- a/templates/shared/variables/variable_list.tmpl
+++ b/templates/shared/variables/variable_list.tmpl
@@ -73,7 +73,7 @@
name="name"
id="dialog-variable-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>