c666b20287
The current connection url handling fails when the password contains encoded special characters: After the encodeURI, the special characters from the password are double encoded, and the password is rejected by postgres. Proposed fix handles one level of double encoding, and while it might break compatibility with passwords like "asdfg%77fgh" (which would've been escaped to asdfg%2577fgh before this patch), I strongly feel that maintaining backwards compatibility is in this case less important than following standards and discouraging bad coding practices. |
||
---|---|---|
.. | ||
native | ||
types | ||
client.js | ||
connection-parameters.js | ||
connection.js | ||
copystream.js | ||
defaults.js | ||
index.js | ||
pool.js | ||
query.js | ||
result.js | ||
utils.js |