mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
Trim search queries (for users, groups, etc.). I have found that sometimes the viewer adds a space at the end, which causes searches to fail.
Resolves http://opensimulator.org/mantis/view.php?id=6935
This commit is contained in:
@@ -150,6 +150,8 @@ namespace OpenSim.Region.CoreModules.Framework.Search
|
||||
|
||||
void OnDirFindQuery(IClientAPI remoteClient, UUID queryID, string queryText, uint queryFlags, int queryStart)
|
||||
{
|
||||
queryText = queryText.Trim();
|
||||
|
||||
if (((DirFindFlags)queryFlags & DirFindFlags.People) == DirFindFlags.People)
|
||||
{
|
||||
if (string.IsNullOrEmpty(queryText))
|
||||
@@ -194,4 +196,4 @@ namespace OpenSim.Region.CoreModules.Framework.Search
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user