From dd1896140c6cfd6cc1a86317f53b611ea2772919 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Mon, 22 Dec 2014 09:47:19 +0100 Subject: [PATCH] Short term fix on SqlSanitize (should move to parameterized Qs anyway) --- Database/Database-ConnectionsCommands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Database/Database-ConnectionsCommands.cs b/Database/Database-ConnectionsCommands.cs index bb10fb35..93c0f94c 100644 --- a/Database/Database-ConnectionsCommands.cs +++ b/Database/Database-ConnectionsCommands.cs @@ -234,7 +234,7 @@ namespace Swarmops.Database string[] forbiddenArray = { "\\", "--", ";", "/*", "*/", "select ", "drop ", "update ", "delete ", "insert ", - "=" + "=", "`" }; string output = input.Replace ("'", "\\'"); // the typical case