From b34727c632580fe9ce292f34aa65618956a5bad0 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Thu, 21 Sep 2023 20:09:44 +0800 Subject: [PATCH] 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> --- templates/shared/variables/variable_list.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/shared/variables/variable_list.tmpl b/templates/shared/variables/variable_list.tmpl index a9456321e44..3a389ffaf82 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"}}" >