summaryrefslogtreecommitdiff
path: root/indra/newview/llurldispatcher.cpp
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-02-17 12:46:27 +0000
committerTofu Linden <tofu.linden@lindenlab.com>2010-02-17 12:46:27 +0000
commitc3bd736f6c2d51542fb2894542151282144e7388 (patch)
treedcb1d709e4170955dbcbf9fdb3071c6ad8890043 /indra/newview/llurldispatcher.cpp
parentf6304197a755b4268e65d128c2695d6392d2bffd (diff)
parentc826e5606e834374e4488e8504c6ffce2d137584 (diff)
PE merge.
Diffstat (limited to 'indra/newview/llurldispatcher.cpp')
-rw-r--r--indra/newview/llurldispatcher.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/newview/llurldispatcher.cpp b/indra/newview/llurldispatcher.cpp
index 0b6bd4b401..257afabdcc 100644
--- a/indra/newview/llurldispatcher.cpp
+++ b/indra/newview/llurldispatcher.cpp
@@ -223,6 +223,17 @@ void LLURLDispatcherImpl::regionNameCallback(U64 region_handle, const std::strin
S32 z = 0;
LLURLSimString::parse(sim_string, &region_name, &x, &y, &z);
+ // Invalid location? EXT-5380
+ if (!region_handle)
+ {
+ if(!region_name.empty() && !LLStringOps::isDigit(region_name.c_str()[0]))// it is no sense to search an empty region_name or when the region_name starts with digits
+ {
+ // may be an user types incorrect region name, let's help him to find a correct one
+ LLFloaterReg::showInstance("search", LLSD().with("category", "places").with("id", LLSD(region_name)));
+ }
+ //*TODO: add notification about invalid region_name
+ return;
+ }
LLVector3 local_pos;
local_pos.mV[VX] = (F32)x;
local_pos.mV[VY] = (F32)y;