Change input sanitation method for SqlSanitize

This commit is contained in:
Rick Falkvinge
2014-12-22 03:46:49 +01:00
parent 5ae4e23763
commit 86bce00b87
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -237,7 +237,7 @@ namespace Swarmops.Database
"="
};
string output = input.Replace ("'", "''"); // the typical case
string output = input.Replace ("'", "\\'"); // the typical case
string inputLower = input.ToLowerInvariant();
foreach (string forbidden in forbiddenArray)
{
+1 -1
View File
@@ -52,7 +52,7 @@ namespace Swarmops.Database
DbCommand command =
GetDbCommand (
"SELECT " + geographyUpdateFieldSequence + " ORDER BY \"CreatedDateTime\"", connection);
"SELECT " + geographyUpdateFieldSequence + " ORDER BY CreatedDateTime", connection);
using (DbDataReader reader = command.ExecuteReader())
{