Change input sanitation method for SqlSanitize
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user