From a0a5c8e615869d449bfad94ec9a650aad82cab91 Mon Sep 17 00:00:00 2001 From: Martin Reddy Date: Thu, 1 Oct 2009 09:52:05 +0000 Subject: EXT-1251: strip leading/trailing whitespace from user input in the navigation bar when trying to access if the input is a valid SLURL. --- indra/newview/llnavigationbar.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'indra/newview/llnavigationbar.cpp') diff --git a/indra/newview/llnavigationbar.cpp b/indra/newview/llnavigationbar.cpp index b1db51dd26..19fee20740 100644 --- a/indra/newview/llnavigationbar.cpp +++ b/indra/newview/llnavigationbar.cpp @@ -317,6 +317,7 @@ void LLNavigationBar::onTeleportHistoryMenuItemClicked(const LLSD& userdata) void LLNavigationBar::onLocationSelection() { std::string typed_location = mCmbLocation->getSimple(); + LLStringUtil::trim(typed_location); // Will not teleport to empty location. if (typed_location.empty()) -- cgit v1.2.3