aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-02-19 17:37:53 +0000
committerMario <mario@mariovavti.com>2021-02-19 17:37:53 +0000
commitddad4f604b56656086b32992ef98709be2568a37 (patch)
tree1b2ed0f46b307f09d109350f777438fd04742905 /include/bbcode.php
parentdc553ab30932390b6dcbbe7fd05e54e7e8dd40fe (diff)
downloadvolse-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.php20
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]);