security fixes for chat

Signed-off-by: Roman Gille <developer@romangille.com>
Merge branch 'master' of github.com:RapScript/rapscript.github.com