mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
Properly escape sql query for loadTrack (#877)
This commit is contained in:
parent
72f9de6cc7
commit
f63d6cfced
@ -106,7 +106,7 @@ public class SqlDao extends AbstractDao {
|
|||||||
private static final String GROUP_DELETE = "DELETE FROM {prefix}groups WHERE name=?";
|
private static final String GROUP_DELETE = "DELETE FROM {prefix}groups WHERE name=?";
|
||||||
|
|
||||||
private static final String TRACK_INSERT = "INSERT INTO {prefix}tracks VALUES(?, ?)";
|
private static final String TRACK_INSERT = "INSERT INTO {prefix}tracks VALUES(?, ?)";
|
||||||
private static final String TRACK_SELECT = "SELECT groups FROM {prefix}tracks WHERE name=?";
|
private static final String TRACK_SELECT = "SELECT 'groups' FROM {prefix}tracks WHERE name=?";
|
||||||
private static final String TRACK_SELECT_ALL = "SELECT * FROM {prefix}tracks";
|
private static final String TRACK_SELECT_ALL = "SELECT * FROM {prefix}tracks";
|
||||||
private static final String TRACK_UPDATE = "UPDATE {prefix}tracks SET groups=? WHERE name=?";
|
private static final String TRACK_UPDATE = "UPDATE {prefix}tracks SET groups=? WHERE name=?";
|
||||||
private static final String TRACK_DELETE = "DELETE FROM {prefix}tracks WHERE name=?";
|
private static final String TRACK_DELETE = "DELETE FROM {prefix}tracks WHERE name=?";
|
||||||
|
Loading…
Reference in New Issue
Block a user