@@ -926,7 +926,7 @@ private void ParseOption(string name, string value)
926
926
_authMechanism = value ;
927
927
break ;
928
928
case "authmechanismproperties" :
929
- foreach ( var property in GetAuthMechanismProperties ( name , value , _isInternalRepresentation ) )
929
+ foreach ( var property in GetAuthMechanismProperties ( name , value ) )
930
930
{
931
931
_authMechanismProperties . Add ( property . Key , property . Value ) ;
932
932
}
@@ -1129,19 +1129,11 @@ private void ParseOption(string name, string value)
1129
1129
}
1130
1130
1131
1131
// private static methods
1132
- private static IEnumerable < KeyValuePair < string , string > > GetAuthMechanismProperties ( string name , string value , bool isEscaped = false )
1132
+ private static IEnumerable < KeyValuePair < string , string > > GetAuthMechanismProperties ( string name , string value )
1133
1133
{
1134
- if ( isEscaped )
1134
+ foreach ( var property in value . Split ( ',' ) )
1135
1135
{
1136
- value = Uri . UnescapeDataString ( value ) ;
1137
- }
1138
-
1139
- // The regex splits at commas that are followed by a word and a colon
1140
- var parts = isEscaped ? Regex . Split ( value , @",(?=\w+:)" ) : value . Split ( ',' ) ;
1141
-
1142
- foreach ( var part in parts )
1143
- {
1144
- var unescapedProperty = isEscaped ? part : Uri . UnescapeDataString ( part ) ;
1136
+ var unescapedProperty = Uri . UnescapeDataString ( property ) ;
1145
1137
var separatorPosition = unescapedProperty . IndexOf ( ':' ) ;
1146
1138
if ( separatorPosition == - 1 )
1147
1139
{
0 commit comments