From 6ed547300687c897dad430e7d0b55f4e2c24b52c Mon Sep 17 00:00:00 2001 From: Andrew Welch Date: Thu, 9 Jan 2025 13:57:35 -0500 Subject: [PATCH 1/2] fix: Change default `preg_split()` flags parameter to the default `-1` to further address the platform error in ([#1561](https://github.com/nystudio107/craft-seomatic/pull/1561)) --- src/helpers/UrlHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/UrlHelper.php b/src/helpers/UrlHelper.php index 4efd6595f..0c316fbbd 100644 --- a/src/helpers/UrlHelper.php +++ b/src/helpers/UrlHelper.php @@ -287,7 +287,7 @@ public static function getSiteUrlOverrideSetting(?int $siteId = null): string */ public static function encodeUrl(string $url): string { - $parts = preg_split('/([:\/?#\[\]@!$&\'()*+,;=%])/', $url, null, PREG_SPLIT_DELIM_CAPTURE); + $parts = preg_split('/([:\/?#\[\]@!$&\'()*+,;=%])/', $url, -1, PREG_SPLIT_DELIM_CAPTURE); $url = ''; foreach ($parts as $i => $part) { if ($i % 2 === 0) { From 0f98cf66d1977dd34bd73d87c8a939049027def6 Mon Sep 17 00:00:00 2001 From: Andrew Welch Date: Thu, 9 Jan 2025 13:57:46 -0500 Subject: [PATCH 2/2] chore: Version 3.5.12 --- CHANGELOG.md | 4 ++++ composer.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 81b90d02e..86ce633ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # SEOmatic Changelog +## 3.5.12 - 2025.01.09 +### Fixed +* Change default `preg_split()` flags parameter to the default `-1` to further address the platform error in ([#1561](https://github.com/nystudio107/craft-seomatic/pull/1561)) + ## 3.5.11 - 2025.01.09 ### Fixed * Fixed a regression that would throw an error on PHP < 8, and also fixed `phpstan` so it will check for platform errors properly going forward ([#1561](https://github.com/nystudio107/craft-seomatic/pull/1561)) diff --git a/composer.json b/composer.json index d4f759b48..d13b317e5 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "nystudio107/craft-seomatic", "description": "SEOmatic facilitates modern SEO best practices & implementation for Craft CMS 3. It is a turnkey SEO system that is comprehensive, powerful, and flexible.", "type": "craft-plugin", - "version": "3.5.11", + "version": "3.5.12", "keywords": [ "craft", "cms",