Security fix. This is how easy they are to miss...

This commit is contained in:
Rick Falkvinge
2014-12-14 01:08:07 +01:00
parent ca974934aa
commit 629e9508d4
+1 -1
View File
@@ -518,7 +518,7 @@ public partial class Pages_v5_Init_Default : Page
sqlCityBuild.Append (",");
}
sqlCityBuild.Append ("('" + city.Name.Replace ("'", "\'") + "'," + newGeographyId + "," +
sqlCityBuild.Append ("('" + city.Name.Replace ("'", "\\'") + "'," + newGeographyId + "," +
newCountryId + ",'')");
insertComma = true;