From 6bc48b58d8b21ac32ee3bd381053f5f8a51e8796 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 19 Aug 2012 00:35:39 -0700 Subject: [PATCH] algorithm for crypt tag --- include/bbcode.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/bbcode.php b/include/bbcode.php index cf8d74bb1d..29ee71d410 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -325,6 +325,7 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) { $Text = preg_replace("/\[crypt\](.*?)\[\/crypt\]/ism",'
' . t('Encrypted content') . '
', $Text); + $Text = preg_replace("/\[crypt=(.*?)\](.*?)\[\/crypt\]/ism",'
' . t('Encrypted content') . '
', $Text); // Try to Oembed -- 2.39.5