Skip to content

Commit

Permalink
Parity: When testing passwords, even for unsecured values, treat as s…
Browse files Browse the repository at this point in the history
…ecured
  • Loading branch information
zontreck committed Nov 7, 2023
1 parent 28f8851 commit f29ec1b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions OpenSim/Region/Framework/Scenes/LinksetDataEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ private LinksetDataEntry(){}

public string testAndGetValue(string pass)
{
if (!IsProtected) return value;
else if (this.pass == pass) return value;
//if (!IsProtected) return value;
if (this.pass == pass) return value;
else return "";
}

Expand All @@ -44,8 +44,9 @@ public String val

public bool test(string pass)
{
if (!IsProtected) return true;
else if (this.pass == pass) return true;
//if (!IsProtected) return true;
// A undocumented caveat for LinksetData appears to be that even for unprotected values, if a pass is provided, it is still treated as protected
if (this.pass == pass) return true;
else return false;
}

Expand Down

0 comments on commit f29ec1b

Please sign in to comment.