diff options
author | Justin Clark-Casey (justincc) | 2014-09-09 18:55:38 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2014-09-09 18:57:02 +0100 |
commit | b4ce71df1e02c86c6b8470dd7429b21af559d644 (patch) | |
tree | 2185f1c73ffa9e29c3784f4ffe3e7f6fc5274583 /OpenSim/Framework/Monitoring/Stats/Stat.cs | |
parent | For stat names containing periods, replace with '#' rather than throw exception (diff) | |
download | opensim-SC_OLD-b4ce71df1e02c86c6b8470dd7429b21af559d644.zip opensim-SC_OLD-b4ce71df1e02c86c6b8470dd7429b21af559d644.tar.gz opensim-SC_OLD-b4ce71df1e02c86c6b8470dd7429b21af559d644.tar.bz2 opensim-SC_OLD-b4ce71df1e02c86c6b8470dd7429b21af559d644.tar.xz |
Make proper fix for last commit wrt Mantis 7317 by replacing disallowed c char and not literal 'c'
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Monitoring/Stats/Stat.cs | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
171 | foreach (char c in DisallowedShortNameCharacters) | 171 | foreach (char c in DisallowedShortNameCharacters) |
172 | { | 172 | { |
173 | if (shortName.IndexOf(c) != -1) | 173 | if (shortName.IndexOf(c) != -1) |
174 | shortName = shortName.Replace('c', '#'); | 174 | shortName = shortName.Replace(c, '#'); |
175 | // throw new Exception(string.Format("Stat name {0} cannot contain character {1}", shortName, c)); | 175 | // throw new Exception(string.Format("Stat name {0} cannot contain character {1}", shortName, c)); |
176 | } | 176 | } |
177 | 177 | ||