mirror of
https://github.com/nextcloud/server.git
synced 2026-06-14 19:20:35 -04:00
On clone create a new instance of the Configuration
To avide effects on the original instance of Connection when the clone is modified, for instance on authentication checks.
This commit is contained in:
parent
b10b8a470b
commit
b41c1d7655
1 changed files with 2 additions and 0 deletions
|
|
@ -78,6 +78,8 @@ class Connection extends LDAPUtility {
|
|||
//a cloned instance inherits the connection resource. It may use it,
|
||||
//but it may not disconnect it
|
||||
$this->dontDestruct = true;
|
||||
$this->configuration = new Configuration($this->configPrefix,
|
||||
!is_null($this->configID));
|
||||
}
|
||||
|
||||
public function __get($name) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue