mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	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.
This commit is contained in:
		@@ -63,7 +63,7 @@
 | 
				
			|||||||
					id="secret-name"
 | 
										id="secret-name"
 | 
				
			||||||
					name="name"
 | 
										name="name"
 | 
				
			||||||
					value="{{.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"}}"
 | 
										placeholder="{{.locale.Tr "secrets.creation.name_placeholder"}}"
 | 
				
			||||||
				>
 | 
									>
 | 
				
			||||||
			</div>
 | 
								</div>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user