Remove partial preg_quote in include/items

2022.09-rc
Hypolite Petovan 2018-02-16 00:31:32 -05:00
rodzic f4d76d10b2
commit 31831b9fdb
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -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\=" . preg_quote($url) . "\](.*?)\[\/url\]/ism", '', $body);
$removedlink = preg_replace("/\[url\=" . preg_quote($matches[1]) . "\](.*?)\[\/url\]/ism", '', $body);
if (($removedlink == "") || strstr($body, $removedlink)) {
$body = $removedlink;
}