]> granicus.if.org Git - php/commit
Fixed bug #76829 Incorrect validation of domain on idn_to_utf8() function
authorAnatol Belski <ab@php.net>
Fri, 31 Aug 2018 22:14:23 +0000 (00:14 +0200)
committerAnatol Belski <ab@php.net>
Fri, 31 Aug 2018 22:14:23 +0000 (00:14 +0200)
commitb9ca573a1bf62e7fb55e863e2073e29ae94d59eb
treef2ce0875ccec6e30833ad50b37869cb83d9cac93
parent3f2a3c5aec2c0a3168efbfa9c6ac38fa927d1766
Fixed bug #76829 Incorrect validation of domain on idn_to_utf8() function

As stated by RFC 5890, U-Labels might be up to 252 Unicode code points
long. This can be fixed in 7.1+ as well, but there might potentially be
issues in some existing apps expecting the output to be max 255 octets
long. Thus it seems to be safer to not to touch stable branches.
ext/intl/idn/idn.c
ext/intl/tests/idn_bug76829.phpt [new file with mode: 0644]