aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-05-19 02:16:12 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-05-19 02:16:12 -0700
commit77e2ef45f05b8106ebe5400f8931c6e54ec6341b (patch)
treeb6f0fa5b6a176162bab0a12041c614f4b7d10aa7 /include/text.php
parentc11b1f8b0dc1a1a9788be2d0a2efc16ef13bb849 (diff)
downloadvolse-hubzilla-77e2ef45f05b8106ebe5400f8931c6e54ec6341b.tar.gz
volse-hubzilla-77e2ef45f05b8106ebe5400f8931c6e54ec6341b.tar.bz2
volse-hubzilla-77e2ef45f05b8106ebe5400f8931c6e54ec6341b.zip
mail_obscure - AES-256 is way too slow, simplify. Ideally a substitution cipher would be adequate for our requirements.
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/text.php b/include/text.php
index bb704e35c..5b9b35c16 100644
--- a/include/text.php
+++ b/include/text.php
@@ -1198,11 +1198,10 @@ function unobscure(&$item) {
function unobscure_mail(&$item) {
if(array_key_exists('mail_flags',$item) && ($item['mail_flags'] & MAIL_OBSCURED)) {
- $key = get_config('system','prvkey');
if($item['title'])
- $item['title'] = crypto_unencapsulate(json_decode_plus($item['title']),$key);
+ $item['title'] = base64url_decode($item['title']);
if($item['body'])
- $item['body'] = crypto_unencapsulate(json_decode_plus($item['body']),$key);
+ $item['body'] = base64url_decode($item['body']);
}
}