aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-06-15 15:58:55 +0200
committerMax Kostikov <max@kostikov.co>2019-06-15 15:58:55 +0200
commit335394aaa110d1fd7cc5804cee1c7b56ccfdd63e (patch)
tree7998ea8d10a53cdeb34eed88862152d2b1fe6587 /Zotlabs/Module
parentc9615cc19ccf09873fbc4c18438f110f81ac0864 (diff)
downloadvolse-hubzilla-335394aaa110d1fd7cc5804cee1c7b56ccfdd63e.tar.gz
volse-hubzilla-335394aaa110d1fd7cc5804cee1c7b56ccfdd63e.tar.bz2
volse-hubzilla-335394aaa110d1fd7cc5804cee1c7b56ccfdd63e.zip
Add base64 decode if signature encoded
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Mail.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zotlabs/Module/Mail.php b/Zotlabs/Module/Mail.php
index 4e4c18cae..67d9642b9 100644
--- a/Zotlabs/Module/Mail.php
+++ b/Zotlabs/Module/Mail.php
@@ -25,7 +25,10 @@ class Mail extends \Zotlabs\Web\Controller {
$expires = ((x($_REQUEST,'expires')) ? datetime_convert(date_default_timezone_get(),'UTC', $_REQUEST['expires']) : NULL_DATE);
$raw = ((x($_REQUEST,'raw')) ? intval($_REQUEST['raw']) : 0);
$mimetype = ((x($_REQUEST,'mimetype')) ? notags(trim($_REQUEST['mimetype'])) : 'text/bbcode');
+
$sig = ((x($_REQUEST,'signature')) ? trim($_REQUEST['signature']) : '');
+ if(strpos($sig,'b64.') === 0)
+ $sig = base64_decode(str_replace('b64.', '', $sig));
if($preview) {