~sircmpwn/gmni-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH gmni] gmnlm: save non-sensitive input requests in history

Details
Message ID
<20220622033918.2296-1-temp.xanomes@volny.cz>
DKIM signature
pass
Download raw message
Patch: +3 -1
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.
---
 src/gmnlm.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/gmnlm.c b/src/gmnlm.c
index b79bb32..9e7b527 100644
--- a/src/gmnlm.c
+++ b/src/gmnlm.c
@@ -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:
-- 
2.36.1
Details
Message ID
<CKWGTPV3BTI6.291ZJ6UW5VV7Q@taiga>
In-Reply-To
<20220622033918.2296-1-temp.xanomes@volny.cz> (view parent)
DKIM signature
pass
Download raw message
Thanks!

To git@git.sr.ht:~sircmpwn/gmni
   eb5c547..bf7975d  master -> master
Reply to thread Export thread (mbox)