OpenPrinting / cups

OpenPrinting CUPS Sources
https://openprinting.github.io/cups
Apache License 2.0
958 stars 174 forks source link

IPv6LL support is broken - Host: header contains unencoded IPv6 numeric address #903

Closed michaelrsweet closed 4 months ago

michaelrsweet commented 4 months ago

CUPS is sending a Host: header for IPv6 link local address without the proper encoding. A URI of the form:

scheme://[v1.fe80::aaaa:bbbb:cccc:dddd+zoneid]:port/resource

should result in a Host: header of the form:

Host: [v1.fe80::aaaa:bbbb:cccc:dddd+zoneid]:port

Instead CUPS is sending:

Host: [fe80::aaaa:bbbb:cccc:dddd%zoneid]:port
michaelrsweet commented 4 months ago

Also affects routable IPv6 addresses (no brackets around the address...)

[master 462e85146] Fix IPv6 address encoding in the Host: header (Issue #903)

[2.4.x 9730c99f7] Fix IPv6 address encoding in the Host: header (Issue #903)