summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMnikolenko ProductEngine <mnikolenko@productengine.com>2015-04-23 11:55:50 +0300
committerMnikolenko ProductEngine <mnikolenko@productengine.com>2015-04-23 11:55:50 +0300
commit0f9ed81563ec8a0e6e2b61fb5a469c2350c794c6 (patch)
tree6befbd68c5639bb6fccb4cca9aaecb3cb0b44daf
parent48bc511e59d5f9f15cbd1344c05fdc61d94365bb (diff)
MAINT-5127 FIXED Just remove nonprintable characters from the string.
-rwxr-xr-xindra/newview/llslurl.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llslurl.cpp b/indra/newview/llslurl.cpp
index 3a82233320..ac17632562 100755
--- a/indra/newview/llslurl.cpp
+++ b/indra/newview/llslurl.cpp
@@ -271,7 +271,14 @@ LLSLURL::LLSLURL(const std::string& slurl)
// at this point, head of the path array should be [ <region>, <x>, <y>, <z> ] where x, y and z
// are collectively optional
// are optional
+
mRegion = LLURI::unescape(path_array[0].asString());
+
+ if(LLStringUtil::containsNonprintable(mRegion))
+ {
+ LLStringUtil::stripNonprintable(mRegion);
+ }
+
path_array.erase(0);
// parse the x, y, and optionally z