MAINT-1275 [SECURITY] Web session tokens saved in SecondLife.log

reviewed with Simon
meow-7.2.2
Kelly Washington 2012-10-25 10:53:58 -07:00
parent d41eaa2e3d
commit b014d949d7
1 changed files with 5 additions and 1 deletions

View File

@ -316,9 +316,13 @@ public:
/* virtual */ void completedHeader(U32 status, const std::string& reason, const LLSD& content)
{
LL_WARNS("MediaAuth") << "status = " << status << ", reason = " << reason << LL_ENDL;
LL_WARNS("MediaAuth") << content << LL_ENDL;
LLSD stripped_content = content;
stripped_content.erase("set-cookie");
LL_WARNS("MediaAuth") << stripped_content << LL_ENDL;
std::string cookie = content["set-cookie"].asString();
LL_DEBUGS("MediaAuth") << "cookie = " << cookie << LL_ENDL;
LLViewerMedia::getCookieStore()->setCookiesFromHost(cookie, mHost);