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