diff options
author | dipsol <dipsol@ampache> | 2008-12-11 16:53:14 +0000 |
---|---|---|
committer | dipsol <dipsol@ampache> | 2008-12-11 16:53:14 +0000 |
commit | f3bb93b2bf3b532afb7adfe8c73308d26c5e165c (patch) | |
tree | 512b2e99a5aee6efc737c13fa9265037775b4458 /lib/class/xmlrpcserver.class.php | |
parent | 93f3c4e9291dd3dac95721c922c02b3cf29c340a (diff) | |
download | ampache-f3bb93b2bf3b532afb7adfe8c73308d26c5e165c.tar.gz ampache-f3bb93b2bf3b532afb7adfe8c73308d26c5e165c.tar.bz2 ampache-f3bb93b2bf3b532afb7adfe8c73308d26c5e165c.zip |
XML-RPC uses now a sha256 digest
Diffstat (limited to 'lib/class/xmlrpcserver.class.php')
-rw-r--r-- | lib/class/xmlrpcserver.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/class/xmlrpcserver.class.php b/lib/class/xmlrpcserver.class.php index 1d66dfd2..d8d5fed2 100644 --- a/lib/class/xmlrpcserver.class.php +++ b/lib/class/xmlrpcserver.class.php @@ -222,8 +222,8 @@ class xmlRpcServer { while ($row = Dba::fetch_assoc($db_results)) { // Build our encoded passphrase - $md5pass = md5($timestamp . $row['key']); - if ($md5pass == $encoded_key) { + $sha256pass = hash('sha256',$timestamp . hash('sha256',$row['key'])); + if ($sha256pass == $encoded_key) { $data['type'] = 'xml-rpc'; $data['username'] = 'System'; $data['value'] = 'Handshake'; |