From f29ec1b7611bf9a406c6d0eb22e53ad9c31fbcdf Mon Sep 17 00:00:00 2001 From: zontreck Date: Mon, 6 Nov 2023 19:10:36 -0700 Subject: [PATCH] Parity: When testing passwords, even for unsecured values, treat as secured --- OpenSim/Region/Framework/Scenes/LinksetDataEntry.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/LinksetDataEntry.cs b/OpenSim/Region/Framework/Scenes/LinksetDataEntry.cs index c9fa4c3dbc8..a5b9ca1cef9 100644 --- a/OpenSim/Region/Framework/Scenes/LinksetDataEntry.cs +++ b/OpenSim/Region/Framework/Scenes/LinksetDataEntry.cs @@ -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 ""; } @@ -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; }