mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Escape find string in MySQL core groups plugin
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user