From 629e9508d4931fa7bde76c93c5e2a914f2fac0b0 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sun, 14 Dec 2014 01:08:07 +0100 Subject: [PATCH] Security fix. This is how easy they are to miss... --- Site5/Pages/v5/Init/Default.aspx.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Site5/Pages/v5/Init/Default.aspx.cs b/Site5/Pages/v5/Init/Default.aspx.cs index f7e988d8..cd05859a 100644 --- a/Site5/Pages/v5/Init/Default.aspx.cs +++ b/Site5/Pages/v5/Init/Default.aspx.cs @@ -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;