Escape find string in MySQL core groups plugin
parent
7c12dfe185
commit
d32d25634d
|
@ -88,7 +88,7 @@ namespace OpenSim.Data.MySQL
|
|||
if (string.IsNullOrEmpty(pattern))
|
||||
pattern = "1";
|
||||
else
|
||||
pattern = string.Format("Name LIKE '%{0}%'", pattern);
|
||||
pattern = string.Format("Name LIKE '%{0}%'", MySqlHelper.EscapeString(pattern));
|
||||
|
||||
return m_Groups.Get(string.Format("ShowInList=1 AND ({0}) ORDER BY Name LIMIT 100", pattern));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue