Don't set Referer when data URI scheme

This commit is contained in:
Tatsuya Kinoshita
2021-04-10 10:39:28 +09:00
parent 8276cf5afa
commit 4e2cfffd88
2 changed files with 5 additions and 3 deletions

2
url.c
View File

@@ -1456,7 +1456,7 @@ otherinfo(ParsedURL *target, ParsedURL *current, char *referer)
else
#endif
if (referer == NULL && current && current->scheme != SCM_LOCAL &&
current->scheme != SCM_LOCAL_CGI &&
current->scheme != SCM_LOCAL_CGI && current->scheme != SCM_DATA &&
(current->scheme != SCM_FTP ||
(current->user == NULL && current->pass == NULL))) {
char *p = current->label;