From f8d4ab1830e286f5d8005c79dd6269f21739f3c9 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 7 Oct 2022 07:55:44 +0000 Subject: [PATCH] Whitespace removed --- mod/item.php | 2 +- src/Content/Text/BBCode.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/item.php b/mod/item.php index 4dc1d77ce..6c01cdbc1 100644 --- a/mod/item.php +++ b/mod/item.php @@ -401,7 +401,7 @@ function item_post(App $a) { $body = $item['body']; $inform = $item['inform']; $postopts = $item['postopts']; - $private = $item['private']; + $private = $item['private']; $str_contact_allow = $item['allow_cid']; $str_group_allow = $item['allow_gid']; $str_contact_deny = $item['deny_cid']; diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index fe2e94c68..bef48dcac 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -294,7 +294,7 @@ class BBCode // Simplify image codes $post['text'] = preg_replace("/\[img\=([0-9]*)x([0-9]*)\](.*?)\[\/img\]/ism", '[img]$3[/img]', $post['text']); $post['text'] = preg_replace("/\[img\=(.*?)\](.*?)\[\/img\]/ism", '[img]$1[/img]', $post['text']); - + // if nothing is found, it maybe having an image. if (!isset($post['type'])) { if (preg_match_all("#\[url=([^\]]+?)\]\s*\[img\]([^\[]+?)\[/img\]\s*\[/url\]#ism", $post['text'], $pictures, PREG_SET_ORDER)) {