mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
Mantis #7657 and #7514. This should alleviate the problem of bad object assets being passed around via HG and archives. No guarantees that all the leaks have been found, but at least it detects and fixes these bad assets upon:
(1) storing and getting assets over HG -- assuming the core HG asset service is being used (not the case with OSGrid!) (2) importing assets via OAR and IAR Instantiation of bad assets now should also work, instead of producing an exception, but the bad assets themselves aren't being fixed in the DB. That should be done with a cleaning tool -- see Perl script in Mantis #7657. Virus!
This commit is contained in:
@@ -37,6 +37,7 @@ using OpenMetaverse;
|
||||
using OpenMetaverse.Packets;
|
||||
using log4net;
|
||||
using OpenSim.Framework;
|
||||
using OpenSim.Framework.Serialization.External;
|
||||
using OpenSim.Region.Framework;
|
||||
using OpenSim.Framework.Client;
|
||||
using OpenSim.Region.Framework.Interfaces;
|
||||
@@ -2225,7 +2226,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
bbox = Vector3.Zero;
|
||||
offsetHeight = 0;
|
||||
|
||||
string xmlData = Utils.BytesToString(assetData);
|
||||
string xmlData = ExternalRepresentationUtils.SanitizeXml(Utils.BytesToString(assetData));
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user