aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Client
diff options
context:
space:
mode:
authorDahlia Trimble2009-06-27 07:49:10 +0000
committerDahlia Trimble2009-06-27 07:49:10 +0000
commit147c9bcd453fde74c13a83a323a40ec0bb571c01 (patch)
tree7592ca11178cbf9f15971741ddf80eb7f7b7b82e /OpenSim/Client
parentUpdate svn properties. (diff)
downloadopensim-SC_OLD-147c9bcd453fde74c13a83a323a40ec0bb571c01.zip
opensim-SC_OLD-147c9bcd453fde74c13a83a323a40ec0bb571c01.tar.gz
opensim-SC_OLD-147c9bcd453fde74c13a83a323a40ec0bb571c01.tar.bz2
opensim-SC_OLD-147c9bcd453fde74c13a83a323a40ec0bb571c01.tar.xz
Make cleartext authentication case sensitive. Thanks jhurliman for spotting this.
Diffstat (limited to 'OpenSim/Client')
-rw-r--r--OpenSim/Client/Linden/LLStandaloneLoginService.cs2
-rw-r--r--OpenSim/Client/MXP/PacketHandler/MXPPacketServer.cs4
2 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Client/Linden/LLStandaloneLoginService.cs b/OpenSim/Client/Linden/LLStandaloneLoginService.cs
index 6d8586d..2a13502 100644
--- a/OpenSim/Client/Linden/LLStandaloneLoginService.cs
+++ b/OpenSim/Client/Linden/LLStandaloneLoginService.cs
@@ -119,7 +119,7 @@ namespace OpenSim.Client.Linden
119 string s = Util.Md5Hash(password + ":" + profile.PasswordSalt); 119 string s = Util.Md5Hash(password + ":" + profile.PasswordSalt);
120 120
121 bool loginresult = (profile.PasswordHash.Equals(s.ToString(), StringComparison.InvariantCultureIgnoreCase) 121 bool loginresult = (profile.PasswordHash.Equals(s.ToString(), StringComparison.InvariantCultureIgnoreCase)
122 || profile.PasswordHash.Equals(password, StringComparison.InvariantCultureIgnoreCase)); 122 || profile.PasswordHash.Equals(password, StringComparison.InvariantCulture));
123 return loginresult; 123 return loginresult;
124 } 124 }
125 } 125 }
diff --git a/OpenSim/Client/MXP/PacketHandler/MXPPacketServer.cs b/OpenSim/Client/MXP/PacketHandler/MXPPacketServer.cs
index 7eab7c5..332ff70 100644
--- a/OpenSim/Client/MXP/PacketHandler/MXPPacketServer.cs
+++ b/OpenSim/Client/MXP/PacketHandler/MXPPacketServer.cs
@@ -540,8 +540,8 @@ namespace OpenSim.Client.MXP.PacketHandler
540 password = password.Remove(0, 3); //remove $1$ 540 password = password.Remove(0, 3); //remove $1$
541 string s = Util.Md5Hash(password + ":" + userProfile.PasswordSalt); 541 string s = Util.Md5Hash(password + ":" + userProfile.PasswordSalt);
542 return (userProfile.PasswordHash.Equals(s.ToString(), StringComparison.InvariantCultureIgnoreCase) 542 return (userProfile.PasswordHash.Equals(s.ToString(), StringComparison.InvariantCultureIgnoreCase)
543 || userProfile.PasswordHash.Equals(password, StringComparison.InvariantCultureIgnoreCase)); 543 || userProfile.PasswordHash.Equals(password, StringComparison.InvariantCulture));
544 } 544 }
545 else 545 else
546 { 546 {
547 return true; 547 return true;