]> git.mxchange.org Git - friendica.git/blobdiff - include/items.php
Replace disapora2bb function content with Markdown::toBBCode call
[friendica.git] / include / items.php
index 1e4fe3ea012472f0ca6416d138305dd45d04af8e..31c8aaa799394dacdfaec90795523c63b325e989 100644 (file)
@@ -185,7 +185,8 @@ function add_page_info_to_body($body, $texturl = false, $no_photos = false) {
                        $body = $removedlink;
                }
 
-               $removedlink = preg_replace("/\[url\=" . preg_quote($matches[1]) . "\](.*?)\[\/url\]/ism", '', $body);
+               $url = str_replace(['/', '.'], ['\/', '\.'], $matches[1]);
+               $removedlink = preg_replace("/\[url\=" . $url . "\](.*?)\[\/url\]/ism", '', $body);
                if (($removedlink == "") || strstr($body, $removedlink)) {
                        $body = $removedlink;
                }