[mapguide-commits] r1142 - in trunk/MgDev/Common/MapGuideCommon:
System Util
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Thu Mar 1 18:45:20 EST 2007
Author: trevorwekel
Date: 2007-03-01 18:45:19 -0500 (Thu, 01 Mar 2007)
New Revision: 1142
Modified:
trunk/MgDev/Common/MapGuideCommon/System/UserInformation.cpp
trunk/MgDev/Common/MapGuideCommon/Util/IpUtil.cpp
Log:
Session related fixes for MapGuide. MgUserInformation::SetMgSessionId would not correctly set locale. A localhost IP address under Linux caused the session affinity information contained in a session identifier to be invalid if hostname lookup failed.
Modified: trunk/MgDev/Common/MapGuideCommon/System/UserInformation.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/System/UserInformation.cpp 2007-03-01 19:39:14 UTC (rev 1141)
+++ trunk/MgDev/Common/MapGuideCommon/System/UserInformation.cpp 2007-03-01 23:45:19 UTC (rev 1142)
@@ -146,7 +146,7 @@
if (sepChar > 0 && sepChar < (int)sessionId.length())
{
- m_locale = sessionId.substr(sepChar+1);
+ m_locale = sessionId.substr(sepChar+1,2);
m_sessionId = sessionId;
}
else
Modified: trunk/MgDev/Common/MapGuideCommon/Util/IpUtil.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/Util/IpUtil.cpp 2007-03-01 19:39:14 UTC (rev 1141)
+++ trunk/MgDev/Common/MapGuideCommon/Util/IpUtil.cpp 2007-03-01 23:45:19 UTC (rev 1142)
@@ -328,8 +328,7 @@
{
const char* hostAddress = inetAddr.get_host_addr();
- if (NULL != hostAddress
- && 0 != ::strcmp(hostAddress, "127.0.0.1"))
+ if (NULL != hostAddress)
{
MgUtil::MultiByteToWideChar(hostAddress, address);
}
More information about the mapguide-commits
mailing list