From aea69c91e76908bd0dcd84500af9726ded38721c Mon Sep 17 00:00:00 2001 From: Josh Combs Date: Wed, 15 Jun 2022 19:38:51 -0400 Subject: [PATCH] fix htmlspecialchars() deprecated function --- Core/Frameworks/Formal/Element/Text.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Frameworks/Formal/Element/Text.php b/Core/Frameworks/Formal/Element/Text.php index 241511b..0690ef7 100644 --- a/Core/Frameworks/Formal/Element/Text.php +++ b/Core/Frameworks/Formal/Element/Text.php @@ -66,7 +66,7 @@ class Text extends \Formal\Element { $placeholder = " placeholder=\"" . htmlspecialchars($sPlaceHolder) . "\" "; } - $clientvalue = htmlspecialchars($value); + $clientvalue = htmlspecialchars($value ?? ''); $sInputType = $this->inputtype();