mirror of
https://github.com/curl/curl.git
synced 2026-05-21 23:16:20 +03:00
parent
77e4e5b86d
commit
edfc80c7c4
1 changed files with 3 additions and 0 deletions
|
|
@ -2024,6 +2024,9 @@ bool Curl_url_same_origin(CURLU *base, CURLU *href)
|
|||
if(href->host) {
|
||||
if(!curl_strequal(base->host, href->host))
|
||||
return FALSE;
|
||||
if(!curl_strequal(base->zoneid ? base->zoneid : "",
|
||||
href->zoneid ? href->zoneid : ""))
|
||||
return FALSE;
|
||||
if(!curl_strequal(base->port, href->port)) {
|
||||
/* This may still match if only one has an explicit port
|
||||
* and it is the default for the scheme. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue