mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-12 10:30:47 +01:00
Sanitizer: Allow bitcoin and lightning URI schemes (#6002)
Fixes #6001.
This commit is contained in:
parent
3dd562ffdc
commit
a3b0bbe861
1 changed files with 2 additions and 0 deletions
|
@ -347,6 +347,8 @@ namespace BTCPayServer.Hosting
|
||||||
htmlSanitizer.AllowedAttributes.Add("webkitallowfullscreen");
|
htmlSanitizer.AllowedAttributes.Add("webkitallowfullscreen");
|
||||||
htmlSanitizer.AllowedAttributes.Add("allowfullscreen");
|
htmlSanitizer.AllowedAttributes.Add("allowfullscreen");
|
||||||
htmlSanitizer.AllowedSchemes.Add("mailto");
|
htmlSanitizer.AllowedSchemes.Add("mailto");
|
||||||
|
htmlSanitizer.AllowedSchemes.Add("bitcoin");
|
||||||
|
htmlSanitizer.AllowedSchemes.Add("lightning");
|
||||||
return htmlSanitizer;
|
return htmlSanitizer;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue