[wp-trac] [WordPress Trac] #62568: MAX_LENGTH = 64 in /wp-includes/Requests/src/IdnaEncoder.php is too restrictive for modern URL use cases.

WordPress Trac noreply at wordpress.org
Tue Nov 26 10:08:37 UTC 2024


#62568: MAX_LENGTH = 64 in /wp-includes/Requests/src/IdnaEncoder.php is too
restrictive for modern URL use cases.
-------------------------+------------------------------
 Reporter:  knufflpuffl  |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Charset      |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by siliconforks):

 Replying to [comment:1 abcd95]:
 > Ran the following code -
 > {{{
 > $test_url = 'a-very-long-subdomain-name-that-exceeds-sixty-four-
 characters-hii';
 > $encoder  = new \WpOrg\Requests\IdnaEncoder();
 > $encoded  = $encoder->encode( $test_url );
 > }}}

 Note that a subdomain name that exceeds 64 characters is not actually
 allowed by standards.

 https://en.wikipedia.org/wiki/Domain_Name_System#Domain_name_syntax,_internationalization

 > A domain name consists of one or more parts, technically called labels,
 that are conventionally concatenated, and delimited by dots, such as
 example.com.
 > ...
 > A label may contain zero to 63 characters, because the length is only
 allowed to take 6 bits.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62568#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list