mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-20 13:34:37 +01:00
Fix EmbeddedCSS being ignored, stripped by sanitizer
This commit is contained in:
parent
1fb75c908b
commit
7974633bba
1 changed files with 1 additions and 0 deletions
|
@ -172,6 +172,7 @@ namespace BTCPayServer.Hosting
|
|||
htmlSanitizer.RemovingStyle += (sender, args) => { args.Cancel = true; };
|
||||
htmlSanitizer.AllowedAttributes.Add("class");
|
||||
htmlSanitizer.AllowedTags.Add("iframe");
|
||||
htmlSanitizer.AllowedTags.Add("style");
|
||||
htmlSanitizer.AllowedTags.Remove("img");
|
||||
htmlSanitizer.AllowedAttributes.Add("webkitallowfullscreen");
|
||||
htmlSanitizer.AllowedAttributes.Add("allowfullscreen");
|
||||
|
|
Loading…
Add table
Reference in a new issue