[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Mathieu Othacehe |
Date: |
Tue, 26 Apr 2022 04:19:48 -0400 (EDT) |
branch: master
commit 51748d7d527885544ff6f9d0d670e98ed80e97fb
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Tue Apr 26 10:18:54 2022 +0200
templates: Forbid '/' character in specification name.
* src/cuirass/templates.scm (specification-edit): Forbid it.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
src/cuirass/templates.scm | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/cuirass/templates.scm b/src/cuirass/templates.scm
index fc2ad03..f732a1e 100644
--- a/src/cuirass/templates.scm
+++ b/src/cuirass/templates.scm
@@ -568,6 +568,7 @@ the existing SPEC otherwise."
(class "form-control")
(id "name")
(name "name")
+ (pattern "[^/]+")
(value ,(or name ""))
,@(if spec
'((readonly))