Skip to content

Commit acd4732

Browse files
committed
Register a server in JSONDB with the realpath()
1 parent d27b484 commit acd4732

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JSONDB/JSONDB.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ public function createServer($path, $username, $password, $connect = FALSE)
306306
fwrite($htpasswd, $username . ':' . crypt($password) . "\n");
307307
fclose($htpasswd);
308308

309-
$this->config->addUser($path, $username, $password);
309+
$this->config->addUser(realpath($path), $username, $password);
310310

311311
if ($connect) {
312312
$this->connect($path, $username, $password);

0 commit comments

Comments
 (0)