diff options
author | Justin Clark-Casey (justincc) | 2014-05-15 22:09:37 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2014-05-15 22:09:37 +0100 |
commit | d32d25634d0a8d257ed3d05abb9e6c70d086b3f5 (patch) | |
tree | 18d17bdeb82a5a8b56f13a19ff2a27db7901c51f | |
parent | On ScenePresence.MakeChildAgent(), reset the m_originRegionID as this is curr... (diff) | |
download | opensim-SC_OLD-d32d25634d0a8d257ed3d05abb9e6c70d086b3f5.zip opensim-SC_OLD-d32d25634d0a8d257ed3d05abb9e6c70d086b3f5.tar.gz opensim-SC_OLD-d32d25634d0a8d257ed3d05abb9e6c70d086b3f5.tar.bz2 opensim-SC_OLD-d32d25634d0a8d257ed3d05abb9e6c70d086b3f5.tar.xz |
Escape find string in MySQL core groups plugin
-rw-r--r-- | OpenSim/Data/MySQL/MySQLGroupsData.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Data/MySQL/MySQLGroupsData.cs b/OpenSim/Data/MySQL/MySQLGroupsData.cs index 8e39229..afa499e 100644 --- a/OpenSim/Data/MySQL/MySQLGroupsData.cs +++ b/OpenSim/Data/MySQL/MySQLGroupsData.cs | |||
@@ -88,7 +88,7 @@ namespace OpenSim.Data.MySQL | |||
88 | if (string.IsNullOrEmpty(pattern)) | 88 | if (string.IsNullOrEmpty(pattern)) |
89 | pattern = "1"; | 89 | pattern = "1"; |
90 | else | 90 | else |
91 | pattern = string.Format("Name LIKE '%{0}%'", pattern); | 91 | pattern = string.Format("Name LIKE '%{0}%'", MySqlHelper.EscapeString(pattern)); |
92 | 92 | ||
93 | return m_Groups.Get(string.Format("ShowInList=1 AND ({0}) ORDER BY Name LIMIT 100", pattern)); | 93 | return m_Groups.Get(string.Format("ShowInList=1 AND ({0}) ORDER BY Name LIMIT 100", pattern)); |
94 | } | 94 | } |