aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2021-04-10 03:19:58 +0000
committerTatsuya Kinoshita <tats@debian.org>2021-04-10 03:19:58 +0000
commit4e0375c76fcc301d523242bffc6ac5c015b7e4e0 (patch)
tree5e10352b8a9f12dcef1c9d3de4d2c5b24e0e05f4 /main.c
parentDon't set Referer when data URI scheme (diff)
downloadw3m-4e0375c76fcc301d523242bffc6ac5c015b7e4e0.tar.gz
w3m-4e0375c76fcc301d523242bffc6ac5c015b7e4e0.zip
Don't include username in Referer
Diffstat (limited to '')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
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 {