bin2hex not vice versa

This commit is contained in:
Friendika 2011-04-21 00:43:37 -07:00
parent 6e6d143aab
commit 1d4791d38c

View file

@ -97,7 +97,7 @@ function settings_post(&$a) {
$pass = '';
openssl_public_encrypt($mail_pass,$pass,$a->user['pubkey']);
q("UPDATE `mailacct` SET `pass` = '%s' WHERE `uid` = %d LIMIT 1",
dbesc(hex2bin($pass)),
dbesc(bin2hex($pass)),
intval(local_user())
);
}