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

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

View File

@ -171,7 +171,8 @@ namespace OpenSim.Framework.Monitoring
foreach (char c in DisallowedShortNameCharacters) foreach (char c in DisallowedShortNameCharacters)
{ {
if (shortName.IndexOf(c) != -1) 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; ShortName = shortName;