From 6dbffb9b49b357efd56e1a64ed82313f151442f3 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 1 Oct 2020 18:27:19 +0200 Subject: [PATCH] Automatic removal of commas from tag names --- wcfsetup/install/files/lib/acp/form/TagAddForm.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/acp/form/TagAddForm.class.php b/wcfsetup/install/files/lib/acp/form/TagAddForm.class.php index 212fcb4316..7e0f3157ec 100644 --- a/wcfsetup/install/files/lib/acp/form/TagAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/TagAddForm.class.php @@ -73,7 +73,7 @@ class TagAddForm extends AbstractForm { public function readFormParameters() { parent::readFormParameters(); - if (isset($_POST['name'])) $this->name = StringUtil::trim($_POST['name']); + if (isset($_POST['name'])) $this->name = str_replace(',', '', StringUtil::trim($_POST['name'])); if (isset($_POST['languageID'])) $this->languageID = intval($_POST['languageID']); // actually these are synonyms -- 2.20.1