summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranoy <anoymouserver+github@mailbox.org>2020-10-04 17:59:48 +0200
committerSean Molenaar <SMillerDev@users.noreply.github.com>2020-10-04 20:10:15 +0200
commit0fe63840854c185b40b0f788e227ef44ca5bb157 (patch)
treed244e30b3dd4e7cc19d963a9187b5b6d212e2d9d
parente8a1fd63fc2b2a88bf466ddc347451bfd9ad125f (diff)
trim whitespaces in item titles
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
-rw-r--r--lib/Db/Item.php2
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;