OpenPrinting / libcups

OpenPrinting CUPS Library Sources
https://openprinting.github.io/cups/cups3.html
Apache License 2.0
37 stars 18 forks source link

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

Closed michaelrsweet closed 8 months ago

michaelrsweet commented 8 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 8 months ago

This also affects routable addresses in that the Host: value is missing the braces.

[master cb2e96052] Fix IPv6 address encoding in the Host: header (Issue #78)