1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-10 00:37:02 +02:00
This commit is contained in:
Ryan Cramer
2022-11-23 12:07:31 -05:00
parent 59cf5040f1
commit 3e9d8e95da

View File

@@ -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);