diff options
author | Lynx Linden <lynx@lindenlab.com> | 2009-12-15 23:53:03 +0000 |
---|---|---|
committer | Lynx Linden <lynx@lindenlab.com> | 2009-12-15 23:53:03 +0000 |
commit | a575816d1745e3d2683436ff9793113ff70c0d87 (patch) | |
tree | 843cbf298e33799b78f0ac93ef4956ed0ff5ed53 /indra/newview/llfloatersearch.cpp | |
parent | 1f8ad2651d82b81fc85d91f3d48663430427537e (diff) | |
parent | 931591c0ab434cc330cfdfa324a27278bc4a1270 (diff) |
merge
Diffstat (limited to 'indra/newview/llfloatersearch.cpp')
-rw-r--r-- | indra/newview/llfloatersearch.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llfloatersearch.cpp b/indra/newview/llfloatersearch.cpp index b197ed0ac6..595d84f9f0 100644 --- a/indra/newview/llfloatersearch.cpp +++ b/indra/newview/llfloatersearch.cpp @@ -131,8 +131,13 @@ void LLFloaterSearch::search(const LLSD &key) subs["QUERY"] = LLURI::escape(search_text); // add the permissions token that login.cgi gave us + // We use "search_token", and fallback to "auth_token" if not present. LLSD search_token = LLLoginInstance::getInstance()->getResponse("search_token"); - subs["AUTH_KEY"] = search_token.asString(); + if (search_token.asString().empty()) + { + search_token = LLLoginInstance::getInstance()->getResponse("auth_token"); + } + subs["AUTH_TOKEN"] = search_token.asString(); // add the user's preferred maturity (can be changed via prefs) std::string maturity; |