From 31a97d51d70b7931695514f9e8d863a3d581a37c Mon Sep 17 00:00:00 2001 From: neon <> Date: Sun, 29 Sep 2019 21:18:23 +0200 Subject: [PATCH] season_halloween: fuck special snowflake names --- season_halloween/scripting/season_halloween.sp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/season_halloween/scripting/season_halloween.sp b/season_halloween/scripting/season_halloween.sp index c0e0f23b..713e0ea3 100644 --- a/season_halloween/scripting/season_halloween.sp +++ b/season_halloween/scripting/season_halloween.sp @@ -663,7 +663,9 @@ public void HookCallback(const char[] output, int caller, int activator, float d char sQuery[256]; Format(sQuery, sizeof(sQuery), "INSERT INTO halloween_table (steam_auth,name,collected) VALUES ('%s','%s',1) ON DUPLICATE KEY UPDATE collected=collected+1;", sSteamID, sName); - g_hDatabase.Query(SQL_OnQueryCompletedUpdate, sQuery); + char sSafeQuery[1024]; + g_hDatabase.Escape(sQuery, sSafeQuery, sizeof(sSafeQuery)); + g_hDatabase.Query(SQL_OnQueryCompletedUpdate, sSafeQuery); g_iCollected[client] += 1; CheckAndAddFlag(client);