Skip to content

Commit ae80cae

Browse files
authored
Merge pull request #553 from poppastring/config-double-html-decoding
Configure Double Decoding
2 parents db029cb + 1497cdb commit ae80cae

File tree

15 files changed

+42
-2
lines changed

15 files changed

+42
-2
lines changed

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pool:
1010

1111
variables:
1212
buildConfiguration: 'Release'
13-
version: 2.32
13+
version: 2.40
1414

1515
steps:
1616
- task: UseDotNet@2

source/DasBlog.CLI/DasBlog.CLI.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<OutputType>Exe</OutputType>
55
<TargetFramework>netcoreapp3.1</TargetFramework>
66
<AssemblyName>dasblog-core</AssemblyName>
7+
<Version>2.40.0</Version>
78
</PropertyGroup>
89

910
<ItemGroup>

source/DasBlog.Services/ConfigFile/Interfaces/ISiteConfig.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,8 @@ public interface ISiteConfig
348348

349349
bool CookieConsentEnabled { get; set; }
350350

351+
bool EnableDoubleDecode { get; set; }
352+
351353
[XmlAnyElement]
352354
XmlElement[] anyElements { get; set; }
353355

source/DasBlog.Services/ConfigFile/SiteConfig.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,5 +215,6 @@ public SiteConfig() { }
215215
public string SecurityScriptSources { get; set; }
216216

217217
public string SecurityStyleSources { get; set; }
218+
public bool EnableDoubleDecode { get; set; }
218219
}
219220
}

source/DasBlog.Services/DasBlog.Services.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<Version>2.40.0</Version>
56
</PropertyGroup>
67
<ItemGroup>
78
<ProjectReference Include="..\DasBlog.Web.Core\DasBlog.Core.csproj" />

source/DasBlog.Tests/UnitTests/SiteConfigTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,5 +165,6 @@ public class SiteConfigTest : ISiteConfig
165165
public string SecurityScriptSources { get; set; }
166166

167167
public string SecurityStyleSources { get; set; }
168+
public bool EnableDoubleDecode { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
168169
}
169170
}

source/DasBlog.Web.Core/DasBlog.Core.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<TargetFramework>netcoreapp3.1</TargetFramework>
44
<Configurations>Debug;Release</Configurations>
55
<Platforms>AnyCPU</Platforms>
6+
<Version>2.40.0</Version>
67
</PropertyGroup>
78
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
89
<NoWarn>1701;1702;NU1701</NoWarn>

source/DasBlog.Web.Repositories/DasBlog.Managers.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<TargetFramework>netcoreapp3.1</TargetFramework>
44
<Configurations>Debug;Release</Configurations>
55
<Platforms>AnyCPU</Platforms>
6+
<Version>2.40.0</Version>
67
</PropertyGroup>
78
<ItemGroup>
89
<PackageReference Include="NodaTime" Version="3.0.3" />

source/DasBlog.Web.UI/Config/site.Development.config

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@
112112

113113
<SecurityStyleSources>cloud.tinymce.com;cdn.tiny.cloud;cdn.jsdelivr.net;js.nicedit.com;www.google.com;platform.twitter.com;cdn.syndication.twimg.com;fonts.googleapis.com;maxcdn.bootstrapcdn.com</SecurityStyleSources>
114114
<SecurityScriptSources>cloud.tinymce.com;cdn.tiny.cloud;cdn.jsdelivr.net;js.nicedit.com;www.google.com;cse.google.com;cdn.syndication.twimg.com;platform.twitter.com;apis.google.com;www.google-analytics.com;www.googletagservices.com;adservice.google.com;securepubads.g.doubleclick.net;ajax.aspnetcdn.com;ssl.google-analytics.com</SecurityScriptSources>
115-
115+
116+
<EnableDoubleDecode>false</EnableDoubleDecode>
117+
116118
<!-- Settings below this line are not currently in use -->
117119
<!-- _________________________________________________ -->
118120
<CommentsAllowHtml>true</CommentsAllowHtml>

source/DasBlog.Web.UI/Config/site.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@
115115
<SecurityStyleSources>cloud.tinymce.com;cdn.tiny.cloud;cdn.jsdelivr.net;js.nicedit.com;www.google.com;platform.twitter.com;cdn.syndication.twimg.com;fonts.googleapis.com;maxcdn.bootstrapcdn.com</SecurityStyleSources>
116116
<SecurityScriptSources>cloud.tinymce.com;cdn.tiny.cloud;cdn.jsdelivr.net;js.nicedit.com;www.google.com;cse.google.com;cdn.syndication.twimg.com;platform.twitter.com;apis.google.com;www.google-analytics.com;www.googletagservices.com;adservice.google.com;securepubads.g.doubleclick.net;ajax.aspnetcdn.com;ssl.google-analytics.com</SecurityScriptSources>
117117

118+
<EnableDoubleDecode>false</EnableDoubleDecode>
119+
118120
<!-- Settings below this line are not currently in use -->
119121
<!-- _________________________________________________ -->
120122
<CommentsAllowHtml>true</CommentsAllowHtml>

0 commit comments

Comments
 (0)