mirror of
https://git.sr.ht/~sircmpwn/gmni
synced 2024-11-26 10:53:46 +01:00
gmnlm: save non-sensitive input requests in history
Currently, followup requests to both INPUT and SENSITIVE INPUT responses are omitted from history. However, the intended use of INPUT is for searching, and there is SENSITIVE INPUT for sensitive information, so omitting regular INPUT from history doesn't make much sense and only makes searching annoying as one needs to re-enter the query when going back.
This commit is contained in:
parent
eb5c5470e8
commit
bf7975dd44
@ -480,7 +480,9 @@ do_requests(struct browser *browser, struct gemini_response *resp)
|
||||
browser->plain_url, input);
|
||||
free(input);
|
||||
assert(new_url);
|
||||
set_url(browser, new_url, NULL);
|
||||
set_url(browser, new_url,
|
||||
resp->status == GEMINI_STATUS_SENSITIVE_INPUT ?
|
||||
NULL : &browser->history);
|
||||
free(new_url);
|
||||
break;
|
||||
case GEMINI_STATUS_CLASS_REDIRECT:
|
||||
|
Loading…
Reference in New Issue
Block a user