]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #4466 from tobiasd/20180216-entranslation
authorHypolite Petovan <mrpetovan@gmail.com>
Fri, 16 Feb 2018 12:35:14 +0000 (07:35 -0500)
committerGitHub <noreply@github.com>
Fri, 16 Feb 2018 12:35:14 +0000 (07:35 -0500)
EN US and GB translation updates

include/items.php

index 31c8aaa799394dacdfaec90795523c63b325e989..1e4fe3ea012472f0ca6416d138305dd45d04af8e 100644 (file)
@@ -185,8 +185,7 @@ function add_page_info_to_body($body, $texturl = false, $no_photos = false) {
                        $body = $removedlink;
                }
 
-               $url = str_replace(['/', '.'], ['\/', '\.'], $matches[1]);
-               $removedlink = preg_replace("/\[url\=" . $url . "\](.*?)\[\/url\]/ism", '', $body);
+               $removedlink = preg_replace("/\[url\=" . preg_quote($matches[1]) . "\](.*?)\[\/url\]/ism", '', $body);
                if (($removedlink == "") || strstr($body, $removedlink)) {
                        $body = $removedlink;
                }