Make proper fix for last commit wrt Mantis 7317 by replacing disallowed c char and not literal 'c'

mb-throttle-test
Justin Clark-Casey (justincc) 2014-09-09 18:55:38 +01:00
parent e271607bef
commit b4ce71df1e
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ namespace OpenSim.Framework.Monitoring
foreach (char c in DisallowedShortNameCharacters)
{
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));
}