aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-21 00:43:37 -0700
committerFriendika <info@friendika.com>2011-04-21 00:43:37 -0700
commit1d4791d38c932548df0807f6d26290ea8346765e (patch)
tree1efd6991cd6947898a421fe4588195cacb7d055d /mod
parent6e6d143aab6bbd9c82edb1b479c2f43d47c6ceb4 (diff)
downloadvolse-hubzilla-1d4791d38c932548df0807f6d26290ea8346765e.tar.gz
volse-hubzilla-1d4791d38c932548df0807f6d26290ea8346765e.tar.bz2
volse-hubzilla-1d4791d38c932548df0807f6d26290ea8346765e.zip
bin2hex not vice versa
Diffstat (limited to 'mod')
-rw-r--r--mod/settings.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/settings.php b/mod/settings.php
index 27da4ba46..66b66d22d 100644
--- a/mod/settings.php
+++ b/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())
);
}