add account_level, is_foreigner and is_member functions; convert all e2ee user input and prompts to hex to avoid javascipt's lame handling of quotes. !!This breaks all prior encrypted posts.!!
This commit is contained in:
@@ -873,6 +873,15 @@ function updateConvItems(mode,data) {
|
||||
return a.join('');
|
||||
}
|
||||
|
||||
function hex2bin(hex) {
|
||||
var bytes = [], str;
|
||||
|
||||
for(var i=0; i< hex.length-1; i+=2)
|
||||
bytes.push(parseInt(hex.substr(i, 2), 16));
|
||||
|
||||
return String.fromCharCode.apply(String, bytes);
|
||||
}
|
||||
|
||||
function groupChangeMember(gid, cid, sec_token) {
|
||||
$('body .fakelink').css('cursor', 'wait');
|
||||
$.get('group/' + gid + '/' + cid + "?t=" + sec_token, function(data) {
|
||||
|
||||
Reference in New Issue
Block a user