Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idn_to_ascii() #4

Closed
killerbees19 opened this issue Mar 11, 2020 · 0 comments
Closed

idn_to_ascii() #4

killerbees19 opened this issue Mar 11, 2020 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@killerbees19
Copy link
Member

killerbees19 commented Mar 11, 2020

Convert $domain at all doRequest calls:

function idn_to_ascii_wrapper($domain)
{
	if(defined('INTL_IDNA_VARIANT_UTS46'))
	{
		return idn_to_ascii($domain, IDNA_DEFAULT, INTL_IDNA_VARIANT_UTS46);
	}

	return idn_to_ascii($domain);
}

Don't forget extension_loaded('intl') requirement check!

--
Reference: fnx-dns-tool

  • 299c3de4f53544b824e908ec137f0e10c290479c
  • 5ec4573771f56fa15578817caae43686ae26c6da
  • 765bc5650fe796f4e35e07bbe4734995746259a7
@killerbees19 killerbees19 added bug Something isn't working enhancement New feature or request labels Mar 11, 2020
@killerbees19 killerbees19 self-assigned this Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Development

No branches or pull requests

1 participant