From 31831b9fdbadeb91c26a3631ca62ebb51900d971 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 16 Feb 2018 00:31:32 -0500 Subject: [PATCH] Remove partial preg_quote in include/items --- include/items.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/items.php b/include/items.php index 740376a1ee..1e4fe3ea01 100644 --- a/include/items.php +++ b/include/items.php @@ -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; }