aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanellogin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llpanellogin.cpp')
-rw-r--r--linden/indra/newview/llpanellogin.cpp21
1 files changed, 16 insertions, 5 deletions
diff --git a/linden/indra/newview/llpanellogin.cpp b/linden/indra/newview/llpanellogin.cpp
index 334e9f4..d8da3c0 100644
--- a/linden/indra/newview/llpanellogin.cpp
+++ b/linden/indra/newview/llpanellogin.cpp
@@ -290,7 +290,15 @@ class LLIamHereLogin : public LLHTTPClient::Responder
290 { 290 {
291 mParent = parentIn; 291 mParent = parentIn;
292 }; 292 };
293 293
294 // We don't actually expect LLSD back, so need to override completedRaw
295 virtual void completedRaw(U32 status, const std::string& reason,
296 const LLChannelDescriptors& channels,
297 const LLIOPipe::buffer_ptr_t& buffer)
298 {
299 completed(status, reason, LLSD()); // will call result() or error()
300 }
301
294 virtual void result( const LLSD& content ) 302 virtual void result( const LLSD& content )
295 { 303 {
296 if ( mParent ) 304 if ( mParent )
@@ -939,10 +947,13 @@ void LLPanelLogin::loadLoginPage()
939 947
940 gViewerWindow->setMenuBackgroundColor(false, !LLViewerLogin::getInstance()->isInProductionGrid()); 948 gViewerWindow->setMenuBackgroundColor(false, !LLViewerLogin::getInstance()->isInProductionGrid());
941 gLoginMenuBarView->setBackgroundColor(gMenuBarView->getBackgroundColor()); 949 gLoginMenuBarView->setBackgroundColor(gMenuBarView->getBackgroundColor());
942 950
943 char* curl_grid = curl_escape(grid.c_str(), 0); 951 if (!grid.empty())
944 oStr << "&grid=" << curl_grid; 952 {
945 curl_free(curl_grid); 953 char* curl_grid = curl_escape(grid.c_str(), 0);
954 oStr << "&grid=" << curl_grid;
955 curl_free(curl_grid);
956 }
946 957
947#if USE_VIEWER_AUTH 958#if USE_VIEWER_AUTH
948 LLURLSimString::sInstance.parse(); 959 LLURLSimString::sInstance.parse();