For stat names containing periods, replace with '#' rather than throw exception

In relation to http://opensimulator.org/mantis/view.php?id=7317
mb-throttle-test
Justin Clark-Casey (justincc) 2014-09-09 18:52:07 +01:00
parent 41f2f3132b
commit e271607bef
1 changed files with 2 additions and 1 deletions

View File

@ -171,7 +171,8 @@ namespace OpenSim.Framework.Monitoring
foreach (char c in DisallowedShortNameCharacters)
{
if (shortName.IndexOf(c) != -1)
throw new Exception(string.Format("Stat name {0} cannot contain character {1}", shortName, c));
shortName = shortName.Replace('c', '#');
// throw new Exception(string.Format("Stat name {0} cannot contain character {1}", shortName, c));
}
ShortName = shortName;