Merge pull request #8654 from nextcloud/stable13-8630

[stable13] use hash algo that's robust against collisions
This commit is contained in:
Roeland Jago Douma 2018-03-05 14:48:49 +01:00 committed by GitHub
commit 9432c59db4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -218,7 +218,7 @@ class Connection extends LDAPUtility {
if(is_null($key)) {
return $prefix;
}
return $prefix.md5($key);
return $prefix.hash('sha256', $key);
}
/**

View File

@ -163,7 +163,7 @@ abstract class Proxy {
if($key === null) {
return $prefix;
}
return $prefix.md5($key);
return $prefix.hash('sha256', $key);
}
/**