summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-09-21 20:09:44 +0800
committerGitHub <noreply@github.com>2023-09-21 12:09:44 +0000
commitb34727c632580fe9ce292f34aa65618956a5bad0 (patch)
tree26d034bc0f6b5016ba4543350c349c4a1d235d7a /templates
parent0ca233258da1837d3588d5f47734453bd862de73 (diff)
downloadgitea-b34727c632580fe9ce292f34aa65618956a5bad0.tar.gz
gitea-b34727c632580fe9ce292f34aa65618956a5bad0.zip
Fix the variable regexp pattern on web page (#27161) (#27164)
Backport #27161 by @lng2020 same as (https://github.com/go-gitea/gitea/pull/26910) Co-authored-by: Nanguan Lin <70063547+lng2020@users.noreply.github.com>
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>