Browse Source

Remove HtmlEncoder dependency from TagHelper services

pull/24488/head
maliming 9 months ago
parent
commit
3f30a71426
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 7
      framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bundling/Volo/Abp/AspNetCore/Mvc/UI/Bundling/TagHelpers/AbpTagHelperScriptService.cs
  2. 10
      framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bundling/Volo/Abp/AspNetCore/Mvc/UI/Bundling/TagHelpers/AbpTagHelperStyleService.cs

7
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bundling/Volo/Abp/AspNetCore/Mvc/UI/Bundling/TagHelpers/AbpTagHelperScriptService.cs

@ -19,9 +19,10 @@ public class AbpTagHelperScriptService : AbpTagHelperResourceService
public AbpTagHelperScriptService( public AbpTagHelperScriptService(
IBundleManager bundleManager, IBundleManager bundleManager,
IOptions<AbpBundlingOptions> options, IOptions<AbpBundlingOptions> options,
IWebHostEnvironment hostingEnvironment, IWebHostEnvironment hostingEnvironment) : base(
HtmlEncoder encoder) bundleManager,
: base(bundleManager, options, hostingEnvironment, encoder) options,
hostingEnvironment)
{ {
} }

10
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bundling/Volo/Abp/AspNetCore/Mvc/UI/Bundling/TagHelpers/AbpTagHelperStyleService.cs

@ -22,12 +22,10 @@ public class AbpTagHelperStyleService : AbpTagHelperResourceService
IBundleManager bundleManager, IBundleManager bundleManager,
IOptions<AbpBundlingOptions> options, IOptions<AbpBundlingOptions> options,
IWebHostEnvironment hostingEnvironment, IWebHostEnvironment hostingEnvironment,
IOptions<AbpSecurityHeadersOptions> securityHeadersOptions, IOptions<AbpSecurityHeadersOptions> securityHeadersOptions) : base(
HtmlEncoder encoder) : base( bundleManager,
bundleManager, options,
options, hostingEnvironment)
hostingEnvironment,
encoder)
{ {
SecurityHeadersOptions = securityHeadersOptions.Value; SecurityHeadersOptions = securityHeadersOptions.Value;
} }

Loading…
Cancel
Save