X-Git-Url: https://code.consxy.com/gitweb/gitweb.cgi?p=candle;a=blobdiff_plain;f=src%2Fmain%2Fserver.lisp;h=6202cd0b86575ed3d85c50ccccecf192f0b0812b;hp=432c83dffb6ff3338f77fe76e80be88c12034681;hb=669f8090b94101449fcb4666a7c3753ea8b3f252;hpb=8bdc35f07f4763917d2d0e306b20e65b00a3c606 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)