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
Inspecting the latter shows that we have somehow managed to change the hostname of the URL. This is a bit surprising, given the documentation for standardized, which only says that it is "A version of the URL with any instances of “..” or “.” removed from its path."
The text was updated successfully, but these errors were encountered:
My guess is that Foundation is removing the slashes in the string, treating it like a path, and inadvertently creating a protocol-relative URL string (https://en.wikipedia.org/wiki/URL#prurl)
IMO, this is outside of the documented behaviour for 'standardized', which says that it affects the URL's 'path'.
Environment
macOS 10.15.7 (19H15), Xcode Version 12.4 (12D4e)
Additional Detail from JIRA
md5: e7bc5ade3f1a64f4d6c23af5d001611b
Issue Description:
For example, when parsing the string "swiftc/..///swift" relative to the base URL "file:///usr/bin/".
Inspecting the latter shows that we have somehow managed to change the hostname of the URL. This is a bit surprising, given the documentation for standardized, which only says that it is "A version of the URL with any instances of “..” or “.” removed from its path."
The text was updated successfully, but these errors were encountered: