]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Bookmark/actions/newbookmark.php
Stricter typing for Bookmark plugin
[quix0rs-gnu-social.git] / plugins / Bookmark / actions / newbookmark.php
index 7551994b7ce02015beebc74affd9ef1552392799..823b7cfbb6e6dc61a5a41e17d7fab2f90ea09f66 100644 (file)
@@ -93,7 +93,7 @@ class NewbookmarkAction extends Action
 
         $this->title       = $this->trimmed('title');
         $this->url         = $this->trimmed('url');
-        $this->tags        = $this->trimmed('tags');
+        $this->tags        = preg_split('/[\s,]+/', $this->trimmed('tags'), null,  PREG_SPLIT_NO_EMPTY);
         $this->description = $this->trimmed('description');
 
         return true;