mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
== string.Empty is .Lenght == 0
This commit is contained in:
@@ -186,7 +186,7 @@ namespace OpenSim.Server.Handlers.Hypergrid
|
||||
if (request.ContainsKey("SECRET"))
|
||||
secret = request["SECRET"].ToString();
|
||||
|
||||
if (secret == string.Empty)
|
||||
if (secret.Length == 0)
|
||||
return BoolResult(false);
|
||||
|
||||
bool success = m_TheService.DeleteFriendship(friend, secret);
|
||||
@@ -303,7 +303,7 @@ namespace OpenSim.Server.Handlers.Hypergrid
|
||||
string sessionStr = request["SESSIONID"].ToString();
|
||||
|
||||
UUID sessionID;
|
||||
if (!UUID.TryParse(sessionStr, out sessionID) || serviceKey == string.Empty)
|
||||
if (!UUID.TryParse(sessionStr, out sessionID) || serviceKey.Length == 0)
|
||||
return false;
|
||||
|
||||
if (!m_UserAgentService.VerifyAgent(sessionID, serviceKey))
|
||||
|
||||
Reference in New Issue
Block a user