From: Marcel Werk Date: Thu, 1 Oct 2020 16:27:19 +0000 (+0200) Subject: Automatic removal of commas from tag names X-Git-Tag: 5.3.0_Beta_2~5^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6dbffb9b49b357efd56e1a64ed82313f151442f3;p=GitHub%2FWoltLab%2FWCF.git Automatic removal of commas from tag names --- 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