* quick fix to fix if webLoginKey is null in DB, return random key (I guess LLUUID.Zero would be a security hazard)

ThreadPoolClientBranch
lbsa71 2008-01-11 07:41:14 +00:00
parent 901f403823
commit 8ccc470e2a
1 changed files with 9 additions and 1 deletions

View File

@ -446,7 +446,15 @@ namespace OpenSim.Framework.Data.MySQL
retval.profileImage = new LLUUID((string) reader["profileImage"]);
retval.profileFirstImage = new LLUUID((string) reader["profileFirstImage"]);
retval.webLoginKey = new LLUUID((string)reader["webLoginKey"]);
if( reader.IsDBNull( reader.GetOrdinal( "webLoginKey" ) ) )
{
retval.webLoginKey = LLUUID.Random();
}
else
{
retval.webLoginKey = new LLUUID((string)reader["webLoginKey"]);
}
}
else
{