--- loncom/html/adm/helper/newslot.helper 2005/11/02 22:14:53 1.8
+++ loncom/html/adm/helper/newslot.helper 2005/11/18 16:26:57 1.9
@@ -32,7 +32,8 @@
if ($val=~/^\s*$/) { return 'Must specify a name'; }
- if ($val=~/\s$/) { return 'Must not contain spaces'; }
+ if ($val=~/\s/) { return 'Must not contain spaces'; }
+ if ($val=~/\W/) { return 'Must contain only letters, numbers and _'; }
return undef;