aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications
diff options
context:
space:
mode:
authorMW2008-03-12 15:45:56 +0000
committerMW2008-03-12 15:45:56 +0000
commit2fea38a5f2d0ee71eef998ec6f7bf4351f188bd7 (patch)
treed8db0ada39919743707cfedcdc6dc8c4dfa605bf /OpenSim/Framework/Communications
parent* Switched Noise 'Flood Area' brush to use Perlin rather than random noise. (diff)
downloadopensim-SC-2fea38a5f2d0ee71eef998ec6f7bf4351f188bd7.zip
opensim-SC-2fea38a5f2d0ee71eef998ec6f7bf4351f188bd7.tar.gz
opensim-SC-2fea38a5f2d0ee71eef998ec6f7bf4351f188bd7.tar.bz2
opensim-SC-2fea38a5f2d0ee71eef998ec6f7bf4351f188bd7.tar.xz
Applied patch from mantis #610, fixed invalid filenames with dump_assets_to_file set to true. thanks tyre.
Diffstat (limited to 'OpenSim/Framework/Communications')
-rw-r--r--OpenSim/Framework/Communications/Capabilities/Caps.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Framework/Communications/Capabilities/Caps.cs b/OpenSim/Framework/Communications/Capabilities/Caps.cs
index 8f41d62..5df6a06 100644
--- a/OpenSim/Framework/Communications/Capabilities/Caps.cs
+++ b/OpenSim/Framework/Communications/Capabilities/Caps.cs
@@ -553,7 +553,7 @@ namespace OpenSim.Region.Capabilities
553 { 553 {
554 Directory.CreateDirectory(assetPath); 554 Directory.CreateDirectory(assetPath);
555 } 555 }
556 FileStream fs = File.Create(Path.Combine(assetPath, filename)); 556 FileStream fs = File.Create(Path.Combine(assetPath, Util.safeFileName(filename)));
557 BinaryWriter bw = new BinaryWriter(fs); 557 BinaryWriter bw = new BinaryWriter(fs);
558 bw.Write(data); 558 bw.Write(data);
559 bw.Close(); 559 bw.Close();