mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
== string.Empty is .Lenght == 0
This commit is contained in:
@@ -153,7 +153,7 @@ namespace OpenSim.Framework.Serialization.External
|
||||
[Obsolete("This method is deprecated. Use RewriteSOP instead.")]
|
||||
public static string RewriteSOP_Old(string xml, string homeURL, IUserAccountService userService, UUID scopeID)
|
||||
{
|
||||
if (xml == string.Empty || homeURL == string.Empty || userService == null)
|
||||
if (xml.Length == 0 || homeURL.Length == 0 || userService == null)
|
||||
return xml;
|
||||
|
||||
XmlDocument doc = new XmlDocument();
|
||||
@@ -213,7 +213,7 @@ namespace OpenSim.Framework.Serialization.External
|
||||
public static string RewriteSOP(string xmlData, string sceneName, string homeURL, IUserAccountService userService, UUID scopeID)
|
||||
{
|
||||
// Console.WriteLine("Input XML [{0}]", xmlData);
|
||||
if (xmlData == string.Empty || homeURL == string.Empty || userService == null)
|
||||
if (xmlData.Length == 0 || homeURL.Length == 0 || userService == null)
|
||||
return xmlData;
|
||||
|
||||
// Deal with bug introduced in Oct. 20 2014 (1eb3e6cc43e2a7b4053bc1185c7c88e22356c5e8)
|
||||
|
||||
Reference in New Issue
Block a user