mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
The WhatWG URL Standard changed its "domain to ASCII" algorithm when beStrict is false and the domain is an ASCII string, it now returns the domain lowercased regardless of Unicode ToASCII's outcome, for web compatibility. Invalid or ambiguous "xn--" (ACE) labels are no longer rejected or validated; they are lowercased and accepted, matching browsers and the web-platform-tests URL cases. This supersedes the earlier spec revision that only lowercased ASCII domains whose labels did not start with "xn--". Drop the now-obsolete "xn--" label detection (which was dead code anyway due to a typo) and unconditionally lowercase ASCII domains. Closes gh-37018