mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
adjust encrypted content representation and also add it to bb_to_markdown
This commit is contained in:
@@ -297,20 +297,20 @@ function bb_parse_crypt($match) {
|
||||
*/
|
||||
function bb_parse_b64_crypt($match) {
|
||||
|
||||
if(empty($match[2]))
|
||||
if(empty($match[1])) {
|
||||
return;
|
||||
}
|
||||
|
||||
$r .= '<code>';
|
||||
$r .= '----- ENCRYPTED CONTENT -----' . '<br>';
|
||||
$r .= $match[2] . '<br>';
|
||||
$r .= '----- END ENCRYPTED CONTENT -----';
|
||||
$r .= '</code>';
|
||||
$r = '-----BEGIN ENCRYPTED MESSAGE-----' . "\n";
|
||||
$r .= $match[1] . "\n";
|
||||
$r .= '-----END ENCRYPTED MESSAGE-----' . "\n";
|
||||
|
||||
$r = '<code>' . str_replace("\n", '<br>', wordwrap($r, 75, "\n", true)) . '</code>';
|
||||
|
||||
return $r;
|
||||
|
||||
}
|
||||
|
||||
|
||||
function bb_parse_app($match) {
|
||||
|
||||
$app = Zotlabs\Lib\Apps::app_decode($match[1]);
|
||||
|
||||
Reference in New Issue
Block a user