← Commit list

edfc80c7c4

Joshua Rogers
Joshua Rogers
2026-05-20
SUCCESS Duration: 256s

Subject

urlapi: compare zone-id in Curl_url_same_origin()

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/urlapi.c+3 -0
@@ -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. */