diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2021-04-10 03:19:58 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2021-04-10 03:19:58 +0000 |
commit | 4e0375c76fcc301d523242bffc6ac5c015b7e4e0 (patch) | |
tree | 5e10352b8a9f12dcef1c9d3de4d2c5b24e0e05f4 /main.c | |
parent | Don't set Referer when data URI scheme (diff) | |
download | w3m-4e0375c76fcc301d523242bffc6ac5c015b7e4e0.tar.gz w3m-4e0375c76fcc301d523242bffc6ac5c015b7e4e0.zip |
Don't include username in Referer
Diffstat (limited to '')
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |