diff options
author | Mario <mario@mariovavti.com> | 2021-02-19 17:37:53 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-02-19 17:37:53 +0000 |
commit | ddad4f604b56656086b32992ef98709be2568a37 (patch) | |
tree | 1b2ed0f46b307f09d109350f777438fd04742905 /include/bbcode.php | |
parent | dc553ab30932390b6dcbbe7fd05e54e7e8dd40fe (diff) | |
download | volse-hubzilla-ddad4f604b56656086b32992ef98709be2568a37.tar.gz volse-hubzilla-ddad4f604b56656086b32992ef98709be2568a37.tar.bz2 volse-hubzilla-ddad4f604b56656086b32992ef98709be2568a37.zip |
provide raw base64 encoded crypto
Diffstat (limited to 'include/bbcode.php')
-rw-r--r-- | include/bbcode.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/bbcode.php b/include/bbcode.php index 584f3adb8..5a71ada0c 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -272,6 +272,26 @@ function bb_parse_crypt($match) { return $Text; } +/** + * @brief Returns raw base64 encoded crypt content. + * + * @param array $match + * @return string + */ +function bb_parse_b64_crypt($match) { + + if(empty($match[2])) + return; + + $r .= '----- ENCRYPTED CONTENT -----' . PHP_EOL; + $r .= $match[2] . PHP_EOL; + $r .= '----- END ENCRYPTED CONTENT -----'; + + return $r; + +} + + function bb_parse_app($match) { $app = Zotlabs\Lib\Apps::app_decode($match[1]); |