From e81f15b28d4e93fb2eb8fdf7bafb47654865126c Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 12 Aug 2012 04:29:26 -0700 Subject: [PATCH] crypt bbcode tag --- include/bbcode.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/bbcode.php b/include/bbcode.php index 85c0059ccd..08beeddfc1 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -323,6 +323,10 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) { $Text = preg_replace("/\[img\](.*?)\[\/img\]/ism", '' . t('Image/photo') . '', $Text); + + $Text = preg_replace("/\[crypt\](.*?)\[\/crypt\]/ism",'
' . t('Encrypted content') . '
', $Text); + + // Try to Oembed if ($tryoembed) { $Text = preg_replace("/\[video\](.*?\.(ogg|ogv|oga|ogm|webm|mp4))\[\/video\]/ism", '', $Text); -- 2.39.5