diff options
author | mrjive <mrjive@mrjive.it> | 2018-04-05 10:52:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-05 10:52:39 +0200 |
commit | a7ff2cc5ea11afd7b832bef24866abfb0220d022 (patch) | |
tree | e7dcd63bbfdaa6ae564c60d59ef60edf0e6ba7a7 /Zotlabs/Module/Chatsvc.php | |
parent | 20ac91703d54679d2e5080ba2d4985e93986a515 (diff) | |
parent | dcacdd23c87061dc15bd12ed2e959bcbe020c5df (diff) | |
download | volse-hubzilla-a7ff2cc5ea11afd7b832bef24866abfb0220d022.tar.gz volse-hubzilla-a7ff2cc5ea11afd7b832bef24866abfb0220d022.tar.bz2 volse-hubzilla-a7ff2cc5ea11afd7b832bef24866abfb0220d022.zip |
Merge pull request #3 from redmatrix/dev
Dev
Diffstat (limited to 'Zotlabs/Module/Chatsvc.php')
-rw-r--r-- | Zotlabs/Module/Chatsvc.php | 4 |
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' : '') ); } |