From: Frank Duncan Date: Fri, 10 Dec 2021 11:47:31 +0000 (-0600) Subject: Add check for legal project name X-Git-Url: https://code.consxy.com/gitweb/?a=commitdiff_plain;h=669f8090b94101449fcb4666a7c3753ea8b3f252;p=candle Add check for legal project name --- diff --git a/src/main/server.lisp b/src/main/server.lisp index 432c83d..6202cd0 100644 --- a/src/main/server.lisp +++ b/src/main/server.lisp @@ -12,6 +12,9 @@ (communication:start-listener port background)) (defun add-project (name src) + (when + (not (cl-ppcre:scan "^[0-9A-Za-z-]*$" name)) + (error "Name contains invalid characters")) (make-project :name name :src src) t)