Browse Source

bin2hex not vice versa

pull/1/head
Friendika 11 years ago
parent
commit
1d4791d38c
  1. 2
      mod/settings.php

2
mod/settings.php

@ -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())
);
}

Loading…
Cancel
Save