diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Db/Item.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Db/Item.php b/lib/Db/Item.php index 435fbdbfb..1619358ed 100644 --- a/lib/Db/Item.php +++ b/lib/Db/Item.php @@ -477,7 +477,7 @@ class Item extends Entity implements IAPI, \JsonSerializable public function setTitle(string $title = null): self { - $title = strip_tags($title); + $title = trim(strip_tags($title)); if ($this->title !== $title) { $this->title = $title; |