From 3e9d8e95da760a2c839e5f02c8c877c94f52f070 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Wed, 23 Nov 2022 12:07:31 -0500 Subject: [PATCH] Fix issue processwire/processwire-issues#1648 --- wire/core/Page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/core/Page.php b/wire/core/Page.php index 6b083acb..1d76733d 100644 --- a/wire/core/Page.php +++ b/wire/core/Page.php @@ -1536,7 +1536,7 @@ class Page extends WireData implements \Countable, WireMatchable { */ public function setName($value, $language = null) { - if(!$this->isLoaded && empty($language) && is_string($value)) { + if(!$this->isLoaded && empty($language) && is_string($value) && strpos($value, 'xn-') !== 0) { $this->settings['name'] = $value; } else { $this->values()->setName($this, $value, $language);