Skip to content

Commit 6d74aa8

Browse files
Merge pull request #3 from hosseinhdr/fix-urlencode
fix: password urlencode in db factory
2 parents e9c2ca5 + d54cfbb commit 6d74aa8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/QueryBuilder/Core/DBFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ protected function createConnections(): static
5252
sprintf(
5353
"%s:%s@%s:%s/%s?idle=%s&timeout=%s",
5454
$this->username,
55-
$this->password,
55+
urlencode($this->password),
5656
$this->host,
5757
$this->writePort,
5858
$this->dbName,
@@ -70,7 +70,7 @@ protected function createConnections(): static
7070
sprintf(
7171
"%s:%s@%s:%s/%s?idle=%s&timeout=%s",
7272
$this->username,
73-
$this->password,
73+
urlencode($this->password),
7474
$this->host,
7575
$this->readPort,
7676
$this->dbName,

0 commit comments

Comments
 (0)