Sanitizer: Allow bitcoin and lightning URI schemes (#6002)

Fixes #6001.
This commit is contained in:
d11n 2024-05-24 07:10:32 +02:00 committed by nicolas.dorier
parent 3dd562ffdc
commit a3b0bbe861
No known key found for this signature in database
GPG key ID: 6618763EF09186FE

View file

@ -347,6 +347,8 @@ namespace BTCPayServer.Hosting
htmlSanitizer.AllowedAttributes.Add("webkitallowfullscreen");
htmlSanitizer.AllowedAttributes.Add("allowfullscreen");
htmlSanitizer.AllowedSchemes.Add("mailto");
htmlSanitizer.AllowedSchemes.Add("bitcoin");
htmlSanitizer.AllowedSchemes.Add("lightning");
return htmlSanitizer;
});