za-creature
5493a52793
Update connection-parameters.js
...
Different double-encode removal strategy
2013-04-11 22:32:04 +03:00
za-creature
c666b20287
Update connection-parameters.js
...
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.
2013-04-11 19:57:03 +03:00
Andrew Dunstan
ed015f9b58
Fix Unix domain socket setting.
...
This code was misconceived in that the host parameter for a Unix
domain socket connection must point to the directory containing
the socket, and not to the socket itself. Libpq will look for
the socket based on the host and port settings. See
<http://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-PARAMKEYWORDS >
2013-02-23 11:11:44 -05:00
Arkady Emelyanov
4c254e8edf
force utf-8 encoding on connect
2013-01-29 20:19:38 -06:00
Francois Payette
77daa06df9
use encodeURI instead of string replace
2013-01-29 19:54:25 -06:00
Brian C
2f75b2f6a9
Merge pull request #256 from booo/jshint
...
Introduce Jshint
2013-01-24 18:49:05 -08:00
Francois Payette
7d773508fc
replace space by %20 in connection string before passing to url.parse
2013-01-24 20:05:55 -05:00
Philipp Borgers
22764e045c
fix jshint errors in lib/connection-parameters.js
2013-01-24 22:07:53 +01:00
Philipp Borgers
8e7e2f7a62
remove trailing whitespaces in lib/connection-parameters.js
2013-01-24 22:05:35 +01:00
Philipp Borgers
5e92546a30
fix jshint errors for lib/connection-parameters.js
2013-01-24 21:59:28 +01:00
bmc
9dad56a54e
add more functionality to connection parameters
2013-01-21 15:44:55 -06:00
bmc
ec0d0beff2
build libpq connection string & support domain socket
2013-01-21 15:09:44 -06:00
bmc
868a9d0e8d
remove node-tap
2013-01-20 19:42:40 -06:00
bmc
92e75f0577
add ConnectionParameters object
2013-01-20 19:42:39 -06:00