Merge pull request #8654 from nextcloud/stable13-8630
[stable13] use hash algo that's robust against collisions
This commit is contained in:
commit
9432c59db4
|
@ -218,7 +218,7 @@ class Connection extends LDAPUtility {
|
|||
if(is_null($key)) {
|
||||
return $prefix;
|
||||
}
|
||||
return $prefix.md5($key);
|
||||
return $prefix.hash('sha256', $key);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -163,7 +163,7 @@ abstract class Proxy {
|
|||
if($key === null) {
|
||||
return $prefix;
|
||||
}
|
||||
return $prefix.md5($key);
|
||||
return $prefix.hash('sha256', $key);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue