aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-04-01 16:53:10 -0700
committerzotlabs <mike@macgirvin.com>2018-04-01 16:53:10 -0700
commitbcffb6cf55ff2d9d88fcb38105695b14ea3586b3 (patch)
tree23e0249aa062d19450ce032ce32e454fd5ce4bf9 /Zotlabs/Module
parent4493304fa79aded582b65498aacf6db48a788bdc (diff)
downloadvolse-hubzilla-bcffb6cf55ff2d9d88fcb38105695b14ea3586b3.tar.gz
volse-hubzilla-bcffb6cf55ff2d9d88fcb38105695b14ea3586b3.tar.bz2
volse-hubzilla-bcffb6cf55ff2d9d88fcb38105695b14ea3586b3.zip
obscurify chats
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Chatsvc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Chatsvc.php b/Zotlabs/Module/Chatsvc.php
index 0f79e3b4c..b4657e84d 100644
--- a/Zotlabs/Module/Chatsvc.php
+++ b/Zotlabs/Module/Chatsvc.php
@@ -60,7 +60,7 @@ class Chatsvc extends \Zotlabs\Web\Controller {
intval(\App::$data['chat']['room_id']),
dbesc(get_observer_hash()),
dbesc(datetime_convert()),
- dbesc($arr['chat_text'])
+ dbesc(str_rot47(base64url_encode($arr['chat_text'])))
);
$ret['success'] = true;
@@ -157,7 +157,7 @@ class Chatsvc extends \Zotlabs\Web\Controller {
'name' => $rr['xchan_name'],
'isotime' => datetime_convert('UTC', date_default_timezone_get(), $rr['created'], 'c'),
'localtime' => datetime_convert('UTC', date_default_timezone_get(), $rr['created'], 'r'),
- 'text' => zidify_links(smilies(bbcode($rr['chat_text']))),
+ 'text' => zidify_links(smilies(bbcode(base64url_decode(str_rot47($rr['chat_text']))))),
'self' => ((get_observer_hash() == $rr['chat_xchan']) ? 'self' : '')
);
}