Make DSN and DBQ extraction from connection string case insensitive (#414)

This commit is contained in:
Cédric Luthi
2023-07-03 21:34:02 +02:00
committed by GitHub
parent 1097a48b80
commit 633d1c091f

View File

@@ -213,7 +213,7 @@ gchar* ExtractDSN (ConnectParams* params, const gchar* connectString)
/*
* Position ourselves to the beginning of "DSN"
*/
p = strstr (connectString, "DSN");
p = strcasestr (connectString, "DSN");
if (!p) return NULL;
/*
* Position ourselves to the "="
@@ -243,9 +243,9 @@ gchar* ExtractDBQ (ConnectParams* params, const gchar* connectString)
if (!params)
return NULL;
/*
* Position ourselves to the beginning of "DSN"
* Position ourselves to the beginning of "DBQ"
*/
p = strstr (connectString, "DBQ");
p = strcasestr (connectString, "DBQ");
if (!p) return NULL;
/*
* Position ourselves to the "="