Skip to content

Commit 08d43ba

Browse files
committed
Make comparison case insensitive
1 parent b109e31 commit 08d43ba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ProxyDialogAutoFiller/ProxyDialogAutoFiller.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ internal static void LoginToProxy(RuntimeContext context, AutomationElement targ
119119
{
120120
// Section name is proxy host name.
121121
// Check if the dialog contains the proxy host name.
122-
if (name.Contains(section.Name))
122+
string lowerName = name.ToLowerInvariant();
123+
string lowerSectionName = section.Name.ToLowerInvariant();
124+
if (lowerName.Contains(lowerSectionName))
123125
{
124126
isTargetProxy = true;
125127
userName = section.UserName;

0 commit comments

Comments
 (0)