Add base64 decode if signature encoded
This commit is contained in:
parent
c9615cc19c
commit
335394aaa1
@ -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);
|
$expires = ((x($_REQUEST,'expires')) ? datetime_convert(date_default_timezone_get(),'UTC', $_REQUEST['expires']) : NULL_DATE);
|
||||||
$raw = ((x($_REQUEST,'raw')) ? intval($_REQUEST['raw']) : 0);
|
$raw = ((x($_REQUEST,'raw')) ? intval($_REQUEST['raw']) : 0);
|
||||||
$mimetype = ((x($_REQUEST,'mimetype')) ? notags(trim($_REQUEST['mimetype'])) : 'text/bbcode');
|
$mimetype = ((x($_REQUEST,'mimetype')) ? notags(trim($_REQUEST['mimetype'])) : 'text/bbcode');
|
||||||
|
|
||||||
$sig = ((x($_REQUEST,'signature')) ? trim($_REQUEST['signature']) : '');
|
$sig = ((x($_REQUEST,'signature')) ? trim($_REQUEST['signature']) : '');
|
||||||
|
if(strpos($sig,'b64.') === 0)
|
||||||
|
$sig = base64_decode(str_replace('b64.', '', $sig));
|
||||||
|
|
||||||
if($preview) {
|
if($preview) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user