diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2021-04-10 01:39:28 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2021-04-10 02:14:26 +0000 |
commit | 4e2cfffd88fb9f4f9fd3400d2270012603a5f896 (patch) | |
tree | f84e7f3afff2aea3934d47e34e21141feac44a05 /main.c | |
parent | Update ChangeLog (diff) | |
download | w3m-4e2cfffd88fb9f4f9fd3400d2270012603a5f896.tar.gz w3m-4e2cfffd88fb9f4f9fd3400d2270012603a5f896.zip |
Don't set Referer when data URI scheme
Diffstat (limited to '')
-rw-r--r-- | main.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -2944,7 +2944,8 @@ loadLink(char *url, char *target, char *referer, FormList *request) base = baseURL(Currentbuf); if ((no_referer_ptr && *no_referer_ptr) || base == NULL || - base->scheme == SCM_LOCAL || base->scheme == SCM_LOCAL_CGI) + base->scheme == SCM_LOCAL || base->scheme == SCM_LOCAL_CGI || + base->scheme == SCM_DATA) referer = NO_REFERER; if (referer == NULL) referer = parsedURL2Str(&Currentbuf->currentURL)->ptr; @@ -4242,7 +4243,8 @@ goURL0(char *prompt, int relative) current = baseURL(Currentbuf); if ((no_referer_ptr && *no_referer_ptr) || current == NULL || - current->scheme == SCM_LOCAL || current->scheme == SCM_LOCAL_CGI) + current->scheme == SCM_LOCAL || current->scheme == SCM_LOCAL_CGI || + current->scheme == SCM_DATA) referer = NO_REFERER; else referer = parsedURL2Str(&Currentbuf->currentURL)->ptr; |