From f9f29d2663ee87fa548ad89af1e29a33a4195e30 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Wed, 27 Apr 2022 10:25:14 -0400 Subject: [PATCH] Update for processwire/processwire-issues#1467 --- wire/core/Sanitizer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/core/Sanitizer.php b/wire/core/Sanitizer.php index 2d1ab77c..52c02717 100644 --- a/wire/core/Sanitizer.php +++ b/wire/core/Sanitizer.php @@ -511,7 +511,7 @@ class Sanitizer extends Wire { } $replace = array(',', '|', ' '); if($delimeter != ' ' && !in_array($delimeter, $replace)) $replace[] = $delimeter; - $value = str_replace($replace, ' ', $value); + $value = str_replace($replace, ' ', "$value"); $allowedExtras[] = ' '; $value = $this->nameFilter($value, $allowedExtras, $replacementChar, $beautify, 8192); if($delimeter != ' ') $value = str_replace(' ', $delimeter, $value);