Account names can also contain periods (in account search).

This commit is contained in:
default 2024-12-21 18:40:09 +01:00
parent 05d6e41710
commit 240f212252

2
html.c
View file

@ -3080,7 +3080,7 @@ int html_get_handler(const xs_dict *req, const char *q_path,
} }
if (q && *q) { if (q && *q) {
if (xs_regex_match(q, "^@?[a-zA-Z0-9_]+@[a-zA-Z0-9-]+\\.")) { if (xs_regex_match(q, "^@?[a-zA-Z0-9._]+@[a-zA-Z0-9-]+\\.")) {
/** search account **/ /** search account **/
xs *actor = NULL; xs *actor = NULL;
xs *acct = NULL; xs *acct = NULL;