Get referer host from referer url.

This commit is contained in:
Michael Drake 2013-11-18 11:49:51 +00:00
parent 10ec6746ce
commit c80229e256
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}