diff options
author | Dahlia Trimble | 2009-06-27 07:49:10 +0000 |
---|---|---|
committer | Dahlia Trimble | 2009-06-27 07:49:10 +0000 |
commit | 147c9bcd453fde74c13a83a323a40ec0bb571c01 (patch) | |
tree | 7592ca11178cbf9f15971741ddf80eb7f7b7b82e /OpenSim/Client/MXP/PacketHandler | |
parent | Update svn properties. (diff) | |
download | opensim-SC-147c9bcd453fde74c13a83a323a40ec0bb571c01.zip opensim-SC-147c9bcd453fde74c13a83a323a40ec0bb571c01.tar.gz opensim-SC-147c9bcd453fde74c13a83a323a40ec0bb571c01.tar.bz2 opensim-SC-147c9bcd453fde74c13a83a323a40ec0bb571c01.tar.xz |
Make cleartext authentication case sensitive. Thanks jhurliman for spotting this.
Diffstat (limited to 'OpenSim/Client/MXP/PacketHandler')
-rw-r--r-- | OpenSim/Client/MXP/PacketHandler/MXPPacketServer.cs | 4 |
1 files changed, 2 insertions, 2 deletions
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; |