Skip to content

Commit e5fd685

Browse files
authored
Merge pull request #2422 from secondlife/brad/2395-fix-start-location
Fix start location dropping coordinates on login
2 parents 0edf6e2 + e23f2f1 commit e5fd685

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

indra/newview/lllogininstance.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,13 +602,14 @@ std::string construct_start_string()
602602
{
603603
// a startup URL was specified
604604
LLVector3 position = start_slurl.getPosition();
605-
std::string unescaped_start =
605+
// NOTE - do not xml escape here, will get escaped properly later by LLSD::asXMLRPCValue()
606+
// see secondlife/viewer#2395
607+
start =
606608
STRINGIZE( "uri:"
607609
<< start_slurl.getRegion() << "&"
608610
<< position[VX] << "&"
609611
<< position[VY] << "&"
610612
<< position[VZ]);
611-
start = LLStringFn::xml_encode(unescaped_start, true);
612613
break;
613614
}
614615
case LLSLURL::HOME_LOCATION:

indra/viewer_components/login/lllogin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ void LLLogin::Impl::connect(const std::string& uri, const LLSD& login_params)
128128
// Launch a coroutine with our login_() method. Run the coroutine until
129129
// its first wait; at that point, return here.
130130
std::string coroname =
131-
LLCoros::instance().launch("LLLogin::Impl::login_", [&]() { loginCoro(uri, login_params); });
131+
LLCoros::instance().launch("LLLogin::Impl::login_", [=]() { loginCoro(uri, login_params); });
132132

133133
LL_DEBUGS("LLLogin") << " connected with uri '" << uri << "', login_params " << login_params << LL_ENDL;
134134
}

0 commit comments

Comments
 (0)