diff src/admin/index.html.luan @ 10:a7187a447835

restrict repo names
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 12 Jul 2022 19:40:50 -0600
parents 028e74c8889d
children
line wrap: on
line diff
--- a/src/admin/index.html.luan	Tue Jul 12 13:27:12 2022 -0600
+++ b/src/admin/index.html.luan	Tue Jul 12 19:40:50 2022 -0600
@@ -47,7 +47,8 @@
 			<form action="add.html">
 				<p>
 					<label prompt>Repo name</label>
-					<input type=text name=repo required>
+					<input type=text name=repo required pattern="[a-z0-9_][a-z0-9_-]*">
+					<label prompt>Must match regex: [a-z0-9_][a-z0-9_-]*</label>
 				</p>
 				<p>
 					<input type=submit value="Add Repo">