Skip to content
Snippets Groups Projects
Commit dd388769 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix adding grid with random whitespace at beginning and end

parent 6aaf4c58
Branches
Tags
No related merge requests found
...@@ -435,6 +435,7 @@ void LLGridManager::addRemoteGrid(const std::string& login_uri, const EAddGridTy ...@@ -435,6 +435,7 @@ void LLGridManager::addRemoteGrid(const std::string& login_uri, const EAddGridTy
if (login_uri.empty()) return; if (login_uri.empty()) return;
std::string grid = utf8str_tolower(login_uri); std::string grid = utf8str_tolower(login_uri);
LLStringUtil::trim(grid);
// Grid needs to be in the form of a dns address, // Grid needs to be in the form of a dns address,
// but also support localhost:9000 or localhost:9000/login // but also support localhost:9000 or localhost:9000/login
if (grid.find_first_not_of("abcdefghijklmnopqrstuvwxyz1234567890-_.:/@% ") != std::string::npos) if (grid.find_first_not_of("abcdefghijklmnopqrstuvwxyz1234567890-_.:/@% ") != std::string::npos)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment