]> git.mxchange.org Git - friendica.git/blobdiff - include/bbcode.php
Bugfix for spaces in links
[friendica.git] / include / bbcode.php
index d461b984824fa0683464e7fe0cbad9901b359b02..1da9bf1d24b938de7e629e61a2b6469956b198c3 100644 (file)
@@ -191,7 +191,7 @@ function bb_cleanup_share($shared, $plaintext, $nolink) {
        if (isset($bookmark[1][0]))
                $link = $bookmark[1][0];
 
-       if (($title != "") AND (strpos($title, $shared[1]) !== false))
+       if (($shared[1] != "") AND (strpos($title, $shared[1]) !== false))
                $shared[1] = $title;
 
        if (($title != "") AND ((strpos($shared[1],$title) !== false) OR