[libgda/LIBGDA_4.0] PostgreSQL provider: correclty handle the USE_SSL argument
- From: Vivien Malerba <vivien src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libgda/LIBGDA_4.0] PostgreSQL provider: correclty handle the USE_SSL argument
- Date: Sun, 15 Nov 2009 21:57:26 +0000 (UTC)
commit c04f363f6dca84b450d0196d527088cee0fab2b4
Author: Vivien Malerba <malerba gnome-db org>
Date: Sun Nov 15 16:37:38 2009 +0100
PostgreSQL provider: correclty handle the USE_SSL argument
providers/postgres/gda-postgres-provider.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/providers/postgres/gda-postgres-provider.c b/providers/postgres/gda-postgres-provider.c
index b1bff4d..9502088 100644
--- a/providers/postgres/gda-postgres-provider.c
+++ b/providers/postgres/gda-postgres-provider.c
@@ -640,6 +640,8 @@ gda_postgres_provider_open_connection (GdaServerProvider *provider, GdaConnectio
pq_pwd = gda_quark_list_find (params, "PASSWORD");
pq_requiressl = gda_quark_list_find (params, "USE_SSL");
+ if (pq_requiressl && (*pq_requiressl != 'T') && (*pq_requiressl != 't'))
+ pq_requiressl = NULL;
/* TODO: Escape single quotes and backslashes in the user name and password: */
conn_string = g_strconcat ("",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]