Skip to content
Snippets Groups Projects
Commit cf94709c authored by Eugene Mutavchi's avatar Eugene Mutavchi
Browse files

Fixed normal bug EXT-6348 (SLapp world map location does not display the...

Fixed normal bug EXT-6348 (SLapp world map location does not display the correct region) - fixed displaying the world map location for escaped SLapp urls.
Reviewed by Vadim Savchuk, https://codereview.productengine.com/secondlife/r/173/.

--HG--
branch : product-engine
parent 1cd9f71e
No related branches found
No related tags found
No related merge requests found
...@@ -745,7 +745,7 @@ std::string LLUrlEntryWorldMap::getLabel(const std::string &url, const LLUrlLabe ...@@ -745,7 +745,7 @@ std::string LLUrlEntryWorldMap::getLabel(const std::string &url, const LLUrlLabe
} }
const std::string label = LLTrans::getString("SLurlLabelShowOnMap"); const std::string label = LLTrans::getString("SLurlLabelShowOnMap");
std::string location = path_array[2]; std::string location = unescapeUrl(path_array[2]);
std::string x = (path_parts > 3) ? path_array[3] : "128"; std::string x = (path_parts > 3) ? path_array[3] : "128";
std::string y = (path_parts > 4) ? path_array[4] : "128"; std::string y = (path_parts > 4) ? path_array[4] : "128";
std::string z = (path_parts > 5) ? path_array[5] : "0"; std::string z = (path_parts > 5) ? path_array[5] : "0";
......
...@@ -125,7 +125,7 @@ class LLWorldMapHandler : public LLCommandHandler ...@@ -125,7 +125,7 @@ class LLWorldMapHandler : public LLCommandHandler
} }
// support the secondlife:///app/worldmap/{LOCATION}/{COORDS} SLapp // support the secondlife:///app/worldmap/{LOCATION}/{COORDS} SLapp
const std::string region_name = params[0].asString(); const std::string region_name = LLURI::unescape(params[0].asString());
S32 x = (params.size() > 1) ? params[1].asInteger() : 128; S32 x = (params.size() > 1) ? params[1].asInteger() : 128;
S32 y = (params.size() > 2) ? params[2].asInteger() : 128; S32 y = (params.size() > 2) ? params[2].asInteger() : 128;
S32 z = (params.size() > 3) ? params[3].asInteger() : 0; S32 z = (params.size() > 3) ? params[3].asInteger() : 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment