]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Item.php
Don't process empty hash tags in Model\Item
[friendica.git] / src / Model / Item.php
index 5427ff44b3e5bf046927ba23bb3a9178ee4dfbfd..ebee91ffc2ee1b8d7300de4769252e61b20247cf 100644 (file)
@@ -2621,7 +2621,7 @@ class Item extends BaseObject
                                "#$2", $item["body"]);
 
                foreach ($tags as $tag) {
-                       if ((strpos($tag, '#') !== 0) || strpos($tag, '[url=') || $tag[1] == '#') {
+                       if ((strpos($tag, '#') !== 0) || strpos($tag, '[url=') || strlen($tag) < 2 || $tag[1] == '#') {
                                continue;
                        }