diff --git a/wcfsetup/install/files/lib/system/form/builder/field/ItemListFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/ItemListFormField.class.php index 2d6e5019d33..457e1fee4ae 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/ItemListFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/ItemListFormField.class.php @@ -245,6 +245,10 @@ public function value($value) throw new \LogicException("Unreachable"); } + // If the input value is an empty string then the resulting array will + // contain exactly one empty string element. + $this->value = ArrayUtil::trim($this->value); + return $this; }