Restrict usernames to the same character set as tags
[blerg.git] / database / util.c
index 2accd5d..6a37e49 100644 (file)
@@ -2,7 +2,7 @@
  * BSD-style license.  Please see the COPYING file for details.
  */
 
-#define VALID_CHAR(x) (x == ' ' || x == '\'' || x == '-' || x == '.' || (x >= '0' && x <= '9') || (x >= 'A' && x <= 'Z') || x == '_' || (x >= 'a' && x <= 'z'))
+#include "database.h"
 
 int valid_name(const char *name) {
        int i;