For stat names containing periods, replace with '#' rather than throw exception
In relation to http://opensimulator.org/mantis/view.php?id=7317ghosts
parent
f8fa76c09f
commit
258de1f17f
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue