From 4e0375c76fcc301d523242bffc6ac5c015b7e4e0 Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Sat, 10 Apr 2021 12:19:58 +0900 Subject: Don't include username in Referer --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 7f5e3f2..fa41cce 100644 --- a/main.c +++ b/main.c @@ -2948,7 +2948,7 @@ loadLink(char *url, char *target, char *referer, FormList *request) base->scheme == SCM_DATA) referer = NO_REFERER; if (referer == NULL) - referer = parsedURL2Str(&Currentbuf->currentURL)->ptr; + referer = parsedURL2RefererStr(&Currentbuf->currentURL)->ptr; buf = loadGeneralFile(url, baseURL(Currentbuf), referer, flag, request); if (buf == NULL) { char *emsg = Sprintf("Can't load %s", url)->ptr; @@ -4247,7 +4247,7 @@ goURL0(char *prompt, int relative) current->scheme == SCM_DATA) referer = NO_REFERER; else - referer = parsedURL2Str(&Currentbuf->currentURL)->ptr; + referer = parsedURL2RefererStr(&Currentbuf->currentURL)->ptr; url = url_encode(url, current, Currentbuf->document_charset); } else { -- cgit v1.2.3