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

ghosts
Justin Clark-Casey (justincc) 2014-09-09 18:55:38 +01:00
parent 258de1f17f
commit c4ed67aeee
1 changed files with 1 additions and 1 deletions

View File

@ -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));
} }