From b4ce71df1e02c86c6b8470dd7429b21af559d644 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Tue, 9 Sep 2014 18:55:38 +0100 Subject: Make proper fix for last commit wrt Mantis 7317 by replacing disallowed c char and not literal 'c' --- OpenSim/Framework/Monitoring/Stats/Stat.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Framework/Monitoring') diff --git a/OpenSim/Framework/Monitoring/Stats/Stat.cs b/OpenSim/Framework/Monitoring/Stats/Stat.cs index df55314..a7cb2a6 100644 --- a/OpenSim/Framework/Monitoring/Stats/Stat.cs +++ b/OpenSim/Framework/Monitoring/Stats/Stat.cs @@ -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)); } -- cgit v1.1