diff options
author | Mario <mario@mariovavti.com> | 2021-09-04 08:18:41 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-09-04 08:18:41 +0000 |
commit | 529824d010cf88c409d5ce894b72060caccae580 (patch) | |
tree | 034260ebb84edef72f87a450ab3915e4726e3368 /Zotlabs/Module/Oep.php | |
parent | c47e21f3a74e4290bd206c1f7edb377e809d7e42 (diff) | |
download | volse-hubzilla-529824d010cf88c409d5ce894b72060caccae580.tar.gz volse-hubzilla-529824d010cf88c409d5ce894b72060caccae580.tar.bz2 volse-hubzilla-529824d010cf88c409d5ce894b72060caccae580.zip |
more unpack_link_id()
Diffstat (limited to 'Zotlabs/Module/Oep.php')
-rw-r--r-- | Zotlabs/Module/Oep.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Zotlabs/Module/Oep.php b/Zotlabs/Module/Oep.php index 346bef519..8e048a487 100644 --- a/Zotlabs/Module/Oep.php +++ b/Zotlabs/Module/Oep.php @@ -77,8 +77,11 @@ class Oep extends \Zotlabs\Web\Controller { $res = $matches[2]; } - if(strpos($res,'b64.') === 0) { - $res = base64url_decode(substr($res,4)); + $res = unpack_link_id($res); + + if ($res === false) { + notice(t('Malformed message id.') . EOL); + return; } $item_normal = item_normal(); |