aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveUtils.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveUtils.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveUtils.cs
index e297c37..5c31c26 100644
--- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveUtils.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveUtils.cs
@@ -42,7 +42,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver
42 public static class InventoryArchiveUtils 42 public static class InventoryArchiveUtils
43 { 43 {
44 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 44 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
45 45
46 // Character used for escaping the path delimter ("\/") and itself ("\\") in human escaped strings
47 public static readonly char ESCAPE_CHARACTER = '\\';
46 public static readonly string PATH_DELIMITER = "/"; 48 public static readonly string PATH_DELIMITER = "/";
47 49
48 /// <summary> 50 /// <summary>
@@ -236,7 +238,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver
236 238
237 for (int i = 0; i < path.Length; i++) 239 for (int i = 0; i < path.Length; i++)
238 { 240 {
239 if (path[i] == '\\' && !singleEscapeChar) 241 if (path[i] == ESCAPE_CHARACTER && !singleEscapeChar)
240 { 242 {
241 singleEscapeChar = true; 243 singleEscapeChar = true;
242 } 244 }
@@ -267,7 +269,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver
267 bool singleEscapeChar = false; 269 bool singleEscapeChar = false;
268 for (int i = 0; i < path.Length; i++) 270 for (int i = 0; i < path.Length; i++)
269 { 271 {
270 if (path[i] == '\\' && !singleEscapeChar) 272 if (path[i] == ESCAPE_CHARACTER && !singleEscapeChar)
271 singleEscapeChar = true; 273 singleEscapeChar = true;
272 else 274 else
273 singleEscapeChar = false; 275 singleEscapeChar = false;