Escape find string in MySQL core groups plugin

bullet-2.82
Justin Clark-Casey (justincc) 2014-05-15 22:09:37 +01:00
parent 7c12dfe185
commit d32d25634d
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}