summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelprofile.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2010-10-18 18:11:29 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2010-10-18 18:11:29 -0400
commit5ef8545f63221db002d14cdcd1c7bac2e96a5e0a (patch)
tree1d4277a0c22de145d1b4d9936718758005e5067d /indra/newview/llpanelprofile.cpp
parent993136fe347075b71f649ec70ce1a463afb073f8 (diff)
consolidate generating profile URL, force to lower case
Diffstat (limited to 'indra/newview/llpanelprofile.cpp')
-rwxr-xr-x[-rw-r--r--]indra/newview/llpanelprofile.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/indra/newview/llpanelprofile.cpp b/indra/newview/llpanelprofile.cpp
index 00191b17bd..38683ab5f7 100644..100755
--- a/indra/newview/llpanelprofile.cpp
+++ b/indra/newview/llpanelprofile.cpp
@@ -38,6 +38,16 @@
static const std::string PANEL_PICKS = "panel_picks";
static const std::string PANEL_PROFILE = "panel_profile";
+std::string getProfileURL(const std::string& agent_name)
+{
+ std::string url = gSavedSettings.getString("WebProfileURL");
+ LLSD subs;
+ subs["AGENT_NAME"] = agent_name;
+ url = LLWeb::expandURLSubstitutions(url,subs);
+ LLStringUtil::toLower(url);
+ return url;
+}
+
class LLProfileHandler : public LLCommandHandler
{
public:
@@ -50,10 +60,7 @@ public:
if (params.size() < 1) return false;
std::string agent_name = params[0];
llinfos << "Profile, agent_name " << agent_name << llendl;
- std::string url = gSavedSettings.getString("WebProfileURL");
- LLSD subs;
- subs["AGENT_NAME"] = agent_name;
- url = LLWeb::expandURLSubstitutions(url,subs);
+ std::string url = getProfileURL(agent_name);
LLWeb::loadURL(url);
return true;