Formatting.

This commit is contained in:
Jordan Bancino 2022-12-19 21:54:01 +00:00
parent c0bd70a391
commit 88a11650cf

View file

@ -456,7 +456,7 @@ MatrixAuthenticate(HttpServerContext * context, Db * db)
} }
HashMap * HashMap *
MatrixRateLimit(HttpServerContext *context, Db *db) MatrixRateLimit(HttpServerContext * context, Db * db)
{ {
/* TODO: Implement rate limiting */ /* TODO: Implement rate limiting */
(void) context; (void) context;
@ -480,8 +480,8 @@ MatrixUserValidate(char *localpart, char *domain)
} }
if (!((c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || if (!((c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') ||
(c == '.') || (c == '_') || (c == '=') || (c == '-') || (c == '.') || (c == '_') || (c == '=') || (c == '-') ||
(c == '/'))) (c == '/')))
{ {
return 0; return 0;
} }