From cc79223bc8b99f8d061fc783ef94716974d619a9 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 7 Jun 2024 12:57:33 -0400 Subject: [PATCH] Fix issue processwire/processwire-issues#1931 --- wire/core/Inputfield.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/core/Inputfield.php b/wire/core/Inputfield.php index 7b4bfe0a..6468967e 100644 --- a/wire/core/Inputfield.php +++ b/wire/core/Inputfield.php @@ -1404,7 +1404,7 @@ abstract class Inputfield extends WireData implements Module { continue; } - $str .= "$attr=\"" . htmlspecialchars($value, ENT_QUOTES, "UTF-8") . '" '; + $str .= "$attr=\"" . htmlspecialchars("$value", ENT_QUOTES, "UTF-8") . '" '; } return trim($str);