Skip to content

Commit 449da28

Browse files
committed
PR feedback
1 parent 9dffc81 commit 449da28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/connectionconfig/connectionDialogWebViewController.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,11 @@ export class ConnectionDialogWebViewController extends ReactWebViewPanelControll
121121
const connectionString = await this._mainController.connectionManager.connectionStore.lookupPassword(connection, isConnectionStringConnection);
122122

123123
if (connectionString) {
124-
const passwordIndex = connectionString.indexOf('Password=') === -1 ? connectionString.indexOf('password=') : connectionString.indexOf('Password=');
124+
const passwordIndex = connectionString.toLowerCase().indexOf('password=');
125125

126126
if (passwordIndex !== -1) {
127127
// extract password from connection string; found between 'Password=' and the next ';'
128-
const passwordStart = passwordIndex + 'Password='.length;
128+
const passwordStart = passwordIndex + 'password='.length;
129129
const passwordEnd = connectionString.indexOf(';', passwordStart);
130130
if (passwordEnd !== -1) {
131131
connection.password = connectionString.substring(passwordStart, passwordEnd);

0 commit comments

Comments
 (0)