From 832f6508f5c8c2a601e7d128c980d0f2cf2981e3 Mon Sep 17 00:00:00 2001 From: kissit Date: Fri, 13 Feb 2026 22:37:43 -0500 Subject: [PATCH] Fix deprecation notice for passing a null to preg_replace --- system/core/Common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/core/Common.php b/system/core/Common.php index c7bb34549b5..bcb1f1aa36d 100644 --- a/system/core/Common.php +++ b/system/core/Common.php @@ -727,7 +727,7 @@ function remove_invisible_characters($str, $url_encoded = TRUE) do { - $str = preg_replace($non_displayables, '', $str, -1, $count); + $str = preg_replace($non_displayables, '', (string)$str, -1, $count); } while ($count);