mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-14 00:02:07 -04:00
Friends list - Fixed an issue with names apostrophes
This commit is contained in:
@@ -473,8 +473,8 @@ public class CharacterService implements INetworkDispatch {
|
||||
if (name.contains(" ")) {
|
||||
name = name.split(" ")[0];
|
||||
}
|
||||
name = name.replace("'", "''");
|
||||
name = name.toLowerCase();
|
||||
|
||||
try {
|
||||
PreparedStatement ps = databaseConnection.preparedStatement("SELECT id FROM characters WHERE LOWER(\"firstName\")=?");
|
||||
ps.setString(1, name);
|
||||
|
||||
Reference in New Issue
Block a user