mirror of
https://github.com/friendica/friendica
synced 2024-12-23 04:40:15 +00:00
Merge pull request #4467 from friendica/revert-4464-develop
Revert "Fix PHP Warning: preg_replace(): Compilation failed in include/items"
This commit is contained in:
commit
35974a9c7b
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue