diff options
author | Diva Canto | 2011-05-22 16:51:03 -0700 |
---|---|---|
committer | Diva Canto | 2011-05-22 16:51:03 -0700 |
commit | 336665e03532cf9d7a1ad65d5071e7050bf6ecd0 (patch) | |
tree | 45c7c1145de1b5af3ff198bcb29564a2547e4575 /OpenSim/Framework | |
parent | File to be removed (diff) | |
download | opensim-SC_OLD-336665e03532cf9d7a1ad65d5071e7050bf6ecd0.zip opensim-SC_OLD-336665e03532cf9d7a1ad65d5071e7050bf6ecd0.tar.gz opensim-SC_OLD-336665e03532cf9d7a1ad65d5071e7050bf6ecd0.tar.bz2 opensim-SC_OLD-336665e03532cf9d7a1ad65d5071e7050bf6ecd0.tar.xz |
More on HG Friends. Added Delete(string, string) across the board. Added security to friendship identifiers so that they can safely be deleted across worlds. Had to change Get(string) to use LIKE because the secret in the identifier is not always known -- affects only HG visitors. BOTTOM LINE SO FAR: HG friendships established and deleted safely across grids, local rights working but not (yet?) being transmitted back.
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/Util.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index af21cb5..e5ff27a 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs | |||
@@ -1703,9 +1703,9 @@ namespace OpenSim.Framework | |||
1703 | /// <param name="url"></param> | 1703 | /// <param name="url"></param> |
1704 | /// <param name="firstname"></param> | 1704 | /// <param name="firstname"></param> |
1705 | /// <param name="lastname"></param> | 1705 | /// <param name="lastname"></param> |
1706 | public static bool ParseUniversalUserIdentifier(string value, out UUID uuid, out string url, out string firstname, out string lastname) | 1706 | public static bool ParseUniversalUserIdentifier(string value, out UUID uuid, out string url, out string firstname, out string lastname, out string secret) |
1707 | { | 1707 | { |
1708 | uuid = UUID.Zero; url = string.Empty; firstname = "Unknown"; lastname = "User"; | 1708 | uuid = UUID.Zero; url = string.Empty; firstname = "Unknown"; lastname = "User"; secret = string.Empty; |
1709 | 1709 | ||
1710 | string[] parts = value.Split(';'); | 1710 | string[] parts = value.Split(';'); |
1711 | if (parts.Length >= 1) | 1711 | if (parts.Length >= 1) |
@@ -1724,6 +1724,8 @@ namespace OpenSim.Framework | |||
1724 | lastname = name[1]; | 1724 | lastname = name[1]; |
1725 | } | 1725 | } |
1726 | } | 1726 | } |
1727 | if (parts.Length >= 4) | ||
1728 | secret = parts[3]; | ||
1727 | 1729 | ||
1728 | return true; | 1730 | return true; |
1729 | } | 1731 | } |