mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 04:26:50 +03:00
Get referer host from referer url.
This commit is contained in:
parent
10ec6746ce
commit
c80229e256
@ -2761,7 +2761,7 @@ bool urldb_set_cookie(const char *header, nsurl *url, nsurl *referer)
|
||||
|
||||
/* Ensure that url's host name domain matches
|
||||
* referer's (4.3.5) */
|
||||
rhost = nsurl_get_component(url, NSURL_HOST);
|
||||
rhost = nsurl_get_component(referer, NSURL_HOST);
|
||||
if (rhost == NULL) {
|
||||
goto error;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user