From f22739a54c8fd8d1ce3e41a9b95e37129f6376b1 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 10 Jan 2025 14:13:34 -0500 Subject: [PATCH] Bump version to 3.0.244 --- wire/config.php | 8 ++++++++ wire/core/ProcessWire.php | 4 ++-- wire/core/Sanitizer.php | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/wire/config.php b/wire/config.php index 3f110741..4ff9706d 100644 --- a/wire/config.php +++ b/wire/config.php @@ -1065,6 +1065,14 @@ $config->pageNameCharset = 'ascii'; * * Please note this whitelist is only used if pageNameCharset is 'UTF8'. * + * If your ProcessWire version is 3.0.244+ AND your installation date was before 10 Jan 2025, + * AND you are enabling UTF8 page names now, please add the text `v3` (without the quotes) + * at the beginning or end of your pageNameWhitelist. This will ensure that it uses a + * newer/better UTF-8 page name conversion. The older version is buggy on PHP versions 7.4+, + * but is used for existing installations so as not to unexpectedly change any existing page + * names. When a new ProcessWire installation occurs after 5 Jan 2025 it automatically uses + * the newer/better version and does not require anything further. + * * @var string * */ diff --git a/wire/core/ProcessWire.php b/wire/core/ProcessWire.php index 4f9cd550..aa12d660 100644 --- a/wire/core/ProcessWire.php +++ b/wire/core/ProcessWire.php @@ -17,7 +17,7 @@ require_once(__DIR__ . '/boot.php'); * ~~~~~ * #pw-body * - * ProcessWire 3.x, Copyright 2024 by Ryan Cramer + * ProcessWire 3.x, Copyright 2025 by Ryan Cramer * https://processwire.com * * Default API vars (A-Z) @@ -80,7 +80,7 @@ class ProcessWire extends Wire { * Reversion revision number * */ - const versionRevision = 243; + const versionRevision = 244; /** * Version suffix string (when applicable) diff --git a/wire/core/Sanitizer.php b/wire/core/Sanitizer.php index 2e3a2bda..e744c12c 100644 --- a/wire/core/Sanitizer.php +++ b/wire/core/Sanitizer.php @@ -1181,7 +1181,7 @@ class Sanitizer extends Wire { if($version) break; } } - if(!$version) $version = $config->installedAfter('2025-01-04') ? 3 : 1; + if(!$version) $version = $config->installedAfter('2025-01-10') ? 3 : 1; if(!function_exists('idn_to_utf8')) $version = 2; if($version >= 3 && version_compare(phpversion(), '7.4.0', '<')) $version = 2; return $version;