diff options
| author | 2025-12-26 21:15:19 +0100 | |
|---|---|---|
| committer | 2025-12-26 21:15:19 +0100 | |
| commit | a1f0a89931ad1ac51e28c318e29ef7f1cfc25255 (patch) | |
| tree | 5cc70388551422d0da776af422b10d4aabf9af4d | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | snac2-a1f0a89931ad1ac51e28c318e29ef7f1cfc25255.tar.gz snac2-a1f0a89931ad1ac51e28c318e29ef7f1cfc25255.tar.xz snac2-a1f0a89931ad1ac51e28c318e29ef7f1cfc25255.zip | |
Revert "Fixed failed search when blank surround the query string."
This reverts commit 79c32485dffa95107216c2251ffa111d7cdef432.
| -rw-r--r-- | html.c | 6 |
1 files changed, 1 insertions, 5 deletions
| @@ -4343,13 +4343,9 @@ int html_get_handler(const xs_dict *req, const char *q_path, | |||
| 4343 | status = HTTP_STATUS_UNAUTHORIZED; | 4343 | status = HTTP_STATUS_UNAUTHORIZED; |
| 4344 | } | 4344 | } |
| 4345 | else { | 4345 | else { |
| 4346 | xs *q = NULL; | 4346 | const char *q = xs_dict_get(q_vars, "q"); |
| 4347 | const char *q1 = xs_dict_get(q_vars, "q"); | ||
| 4348 | xs *url_acct = NULL; | 4347 | xs *url_acct = NULL; |
| 4349 | 4348 | ||
| 4350 | if (xs_is_string(q1)) | ||
| 4351 | q = xs_strip_i(xs_dup(q1)); | ||
| 4352 | |||
| 4353 | /* searching for an URL? */ | 4349 | /* searching for an URL? */ |
| 4354 | if (q && xs_match(q, "https://*|http://*")) { | 4350 | if (q && xs_match(q, "https://*|http://*")) { |
| 4355 | /* may by an actor; try a webfinger */ | 4351 | /* may by an actor; try a webfinger */ |