We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1aec4fd commit d2d2515Copy full SHA for d2d2515
lib/connection_config.js
@@ -260,11 +260,11 @@ class ConnectionConfig {
260
static parseUrl(url) {
261
const parsedUrl = new URL(url);
262
const options = {
263
- host: parsedUrl.hostname,
+ host: decodeURIComponent(parsedUrl.hostname),
264
port: parseInt(parsedUrl.port, 10),
265
- database: parsedUrl.pathname.slice(1),
266
- user: parsedUrl.username,
267
- password: parsedUrl.password
+ database: decodeURIComponent(parsedUrl.pathname.slice(1)),
+ user: decodeURIComponent(parsedUrl.username),
+ password: decodeURIComponent(parsedUrl.password),
268
};
269
parsedUrl.searchParams.forEach((value, key) => {
270
try {
0 commit comments