From 00a6baaac969b97db5676c9f39b8755e8dcb9ac1 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Sun, 5 Jan 2025 10:11:20 -0500 Subject: [PATCH] Update for processwire/processwire-issues#2015 --- wire/core/Sanitizer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wire/core/Sanitizer.php b/wire/core/Sanitizer.php index 59cda4d1..497ce1d6 100644 --- a/wire/core/Sanitizer.php +++ b/wire/core/Sanitizer.php @@ -1072,9 +1072,9 @@ class Sanitizer extends Wire { // PHP 7.4+ idn_to_ascii $info = array(); // 16=IDNA_NONTRANSITIONAL_TO_ASCII - $value = idn_to_ascii($value, 16, INTL_IDNA_VARIANT_UTS46, $info); + idn_to_ascii($value, 16, INTL_IDNA_VARIANT_UTS46, $info); // IDN return value fails on longer strings, but populates result correctly - if(strlen($_value) >= 50) $value = $info['result']; + $value = $info['result']; } else if($version === 2) { // Punycode library