Make proper fix for last commit wrt Mantis 7317 by replacing disallowed c char and not literal 'c'
parent
258de1f17f
commit
c4ed67aeee
|
@ -171,7 +171,7 @@ namespace OpenSim.Framework.Monitoring
|
||||||
foreach (char c in DisallowedShortNameCharacters)
|
foreach (char c in DisallowedShortNameCharacters)
|
||||||
{
|
{
|
||||||
if (shortName.IndexOf(c) != -1)
|
if (shortName.IndexOf(c) != -1)
|
||||||
shortName = shortName.Replace('c', '#');
|
shortName = shortName.Replace(c, '#');
|
||||||
// throw new Exception(string.Format("Stat name {0} cannot contain character {1}", shortName, c));
|
// throw new Exception(string.Format("Stat name {0} cannot contain character {1}", shortName, c));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue