From 64d72603dbe72dae0eab9fd642efe81c3329af1e Mon Sep 17 00:00:00 2001 From: Ken Keller <7539331+mrkenkeller@users.noreply.github.com> Date: Thu, 5 Feb 2026 08:17:28 -0600 Subject: [PATCH] Decode HTML entities in submitted name --- app/Draft/Name.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Draft/Name.php b/app/Draft/Name.php index 71d5942..2ac699f 100644 --- a/app/Draft/Name.php +++ b/app/Draft/Name.php @@ -12,7 +12,7 @@ public function __construct(?string $submittedName = null) { if($submittedName == null || trim($submittedName) == '') { $this->name = $this->generate(); } else { - $this->name = htmlentities(trim($submittedName)); + $this->name = htmlentities(html_entity_decode(trim($submittedName))); } } @@ -47,4 +47,4 @@ protected function generate(): string return 'Operation ' . ucfirst($adjectives[rand(0, count($adjectives) - 1)]) . ' ' . ucfirst($nouns[rand(0, count($nouns) - 1)]); } -} \ No newline at end of file +}