Skip to content

Commit c1ed19d

Browse files
committed
change the internal Name property to use a null byte for delimiter to avoid some edge cases with duplicate key/value names
1 parent b313b6b commit c1ed19d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

FlashpointSecurePlayer/Shared.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1634,6 +1634,10 @@ public string _ValueExpanded {
16341634
}
16351635
}
16361636

1637+
// this property is never stored in configurations
1638+
// and is only for internal use. The null byte is used
1639+
// as seperation since the backslash is not a good enough
1640+
// delimiter for a primary key (value names can contain them)
16371641
public string Name {
16381642
get {
16391643
string keyName = KeyName;
@@ -1647,7 +1651,7 @@ public string Name {
16471651
if (!String.IsNullOrEmpty(valueName)) {
16481652
valueName = valueName.ToUpperInvariant();
16491653
}
1650-
return keyName + "\\" + valueName;
1654+
return keyName + "\0" + valueName;
16511655
}
16521656
}
16531657

0 commit comments

Comments
 (0)