You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
leturlA = URL(string: "http://[::1%0Aen0]/cd")!
print(urlA) // "http://[::1%0Aen0]/cd"print(urlA.host) // "::1\nen0" --- includes a newline!
This seems to be for IPv6 zone IDs. In that case, it's probably a good idea to only recognise the "%25" (percent-encoded ASCII percent sign, 0x25) and fail on anything else.
The text was updated successfully, but these errors were encountered:
URL is a wrapper on CFURL*, which comes from Foundation, which is a closed source apple framework.
Although I'm not 100% sure on the best way to file this, I think it makes more sense to report this issue directly to Apples Feedback Assistant or on the developer forums.
berikv (JIRA User) Apple's feedback/radar system is confidential, which is great if you need to include some proprietary code in your bug report, but not great for transparency and tracking the progress of reported bugs (which is why community sites such as http://www.openradar.appspot.com/ exist).
As this affects open-source code, I consider this to be the appropriate place to file this bug. Apple has a radar sync system to duplicate it to their internal bug-tracker.
Environment
macOS 11.6, Xcode 13.1 (13A1030d)
Additional Detail from JIRA
md5: c1a7eaf07c3bf6c01c786b9dbc02d2b8
Issue Description:
This seems potentially unsafe:
This seems to be for IPv6 zone IDs. In that case, it's probably a good idea to only recognise the "%25" (percent-encoded ASCII percent sign, 0x25) and fail on anything else.
The text was updated successfully, but these errors were encountered: