From: friendica Date: Sun, 19 Aug 2012 07:35:39 +0000 (-0700) Subject: algorithm for crypt tag X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6bc48b58d8b21ac32ee3bd381053f5f8a51e8796;p=friendica.git algorithm for crypt tag --- 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