Skip to content

urlapi: compare zone-id in Curl_url_same_origin()#21686

Closed
MegaManSec wants to merge 1 commit into
curl:masterfrom
MegaManSec:urlapi-same-origin-zoneid-2
Closed

urlapi: compare zone-id in Curl_url_same_origin()#21686
MegaManSec wants to merge 1 commit into
curl:masterfrom
MegaManSec:urlapi-same-origin-zoneid-2

Conversation

@MegaManSec
Copy link
Copy Markdown
Contributor

@MegaManSec MegaManSec commented May 19, 2026

Curl_url_same_origin() compares u->host but not u->zoneid.
IPv6 link-local addresses that differ only in zone-id (e.g.
fe80::1%eth0 vs fe80::1%eth1) are treated as the same origin.

Add zone-id comparison immediately after the host comparison.

@github-actions github-actions Bot added the URL label May 19, 2026
@bagder bagder closed this in edfc80c May 20, 2026
@bagder
Copy link
Copy Markdown
Member

bagder commented May 20, 2026

Thanks!

outcast36 pushed a commit to greearb/curl that referenced this pull request Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants