From 0bb1be35417c0d46c019b6a148c4d13d2348f644 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Tue, 25 Feb 2020 14:24:46 -0500 Subject: [PATCH] commentsubmit: fix name --- content/vendor/form-comments/commentsubmit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/vendor/form-comments/commentsubmit.php b/content/vendor/form-comments/commentsubmit.php index af3fe6e..8c81149 100644 --- a/content/vendor/form-comments/commentsubmit.php +++ b/content/vendor/form-comments/commentsubmit.php @@ -30,7 +30,7 @@ if(empty($_POST['name']) || $DATE_FORMAT = "Y-m-d H:i:s"; $publish = date($DATE_FORMAT); - $name = strip_tags(utf8_decode(htmlspecialchars($_POST['name']))); + $name = strip_tags(utf8_decode(utf8_encode($_POST['name'])); $link = strip_tags(htmlspecialchars($_POST['link'])); $email_address = strip_tags(htmlspecialchars($_POST['email'])); $comment = utf8_decode($_POST['comment']);