diff options
author | anoy <anoymouserver+github@mailbox.org> | 2020-10-04 17:59:48 +0200 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2020-10-04 20:10:15 +0200 |
commit | 0fe63840854c185b40b0f788e227ef44ca5bb157 (patch) | |
tree | d244e30b3dd4e7cc19d963a9187b5b6d212e2d9d /lib/Db | |
parent | e8a1fd63fc2b2a88bf466ddc347451bfd9ad125f (diff) |
trim whitespaces in item titles
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
Diffstat (limited to 'lib/Db')
-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; |