Explorar o código

More webfinger search tweaks.

grunfink hai 3 meses
pai
achega
6f11524c1c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      html.c

+ 1 - 1
html.c

@@ -4806,7 +4806,7 @@ int html_get_handler(const xs_dict *req, const char *q_path,
             }
 
             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-]+\\.")) {
                     /** search account **/
                     xs *actor = NULL;
                     xs *acct = NULL;