commit a1f0a89
grunfink
·
2025-12-26 20:15:19 +0000 UTC
parent 53043a6
Revert "Fixed failed search when blank surround the query string." This reverts commit 79c32485dffa95107216c2251ffa111d7cdef432.
1 files changed,
+1,
-5
M
html.c
M
html.c
+1,
-5
1@@ -4343,13 +4343,9 @@ int html_get_handler(const xs_dict *req, const char *q_path,
2 status = HTTP_STATUS_UNAUTHORIZED;
3 }
4 else {
5- xs *q = NULL;
6- const char *q1 = xs_dict_get(q_vars, "q");
7+ const char *q = xs_dict_get(q_vars, "q");
8 xs *url_acct = NULL;
9
10- if (xs_is_string(q1))
11- q = xs_strip_i(xs_dup(q1));
12-
13 /* searching for an URL? */
14 if (q && xs_match(q, "https://*|http://*")) {
15 /* may by an actor; try a webfinger */