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=69350.8.0.3
parent
6edc446780
commit
a2dd8f31de
|
@ -10387,7 +10387,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
handlerDirFindQuery(this,
|
handlerDirFindQuery(this,
|
||||||
dirFindQueryPacket.QueryData.QueryID,
|
dirFindQueryPacket.QueryData.QueryID,
|
||||||
Utils.BytesToString(
|
Utils.BytesToString(
|
||||||
dirFindQueryPacket.QueryData.QueryText),
|
dirFindQueryPacket.QueryData.QueryText).Trim(),
|
||||||
dirFindQueryPacket.QueryData.QueryFlags,
|
dirFindQueryPacket.QueryData.QueryFlags,
|
||||||
dirFindQueryPacket.QueryData.QueryStart);
|
dirFindQueryPacket.QueryData.QueryStart);
|
||||||
}
|
}
|
||||||
|
|
|
@ -150,6 +150,8 @@ namespace OpenSim.Region.CoreModules.Framework.Search
|
||||||
|
|
||||||
void OnDirFindQuery(IClientAPI remoteClient, UUID queryID, string queryText, uint queryFlags, int queryStart)
|
void OnDirFindQuery(IClientAPI remoteClient, UUID queryID, string queryText, uint queryFlags, int queryStart)
|
||||||
{
|
{
|
||||||
|
queryText = queryText.Trim();
|
||||||
|
|
||||||
if (((DirFindFlags)queryFlags & DirFindFlags.People) == DirFindFlags.People)
|
if (((DirFindFlags)queryFlags & DirFindFlags.People) == DirFindFlags.People)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(queryText))
|
if (string.IsNullOrEmpty(queryText))
|
||||||
|
|
Loading…
Reference in New Issue