aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2025-12-26 21:15:19 +0100
committergrunfink <grunfink@comam.es>2025-12-26 21:15:19 +0100
commita1f0a89931ad1ac51e28c318e29ef7f1cfc25255 (patch)
tree5cc70388551422d0da776af422b10d4aabf9af4d
parent53043a6785e8880e8ec1b71d6ad2b13096347a44 (diff)
Revert "Fixed failed search when blank surround the query string."
This reverts commit 79c32485dffa95107216c2251ffa111d7cdef432.
-rw-r--r--html.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/html.c b/html.c
index 20ad839..0b84e56 100644
--- a/html.c
+++ b/html.c
@@ -4343,13 +4343,9 @@ int html_get_handler(const xs_dict *req, const char *q_path,
status = HTTP_STATUS_UNAUTHORIZED;
}
else {
- xs *q = NULL;
- const char *q1 = xs_dict_get(q_vars, "q");
+ const char *q = xs_dict_get(q_vars, "q");
xs *url_acct = NULL;
- if (xs_is_string(q1))
- q = xs_strip_i(xs_dup(q1));
-
/* searching for an URL? */
if (q && xs_match(q, "https://*|http://*")) {
/* may by an actor; try a webfinger */