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 GitHub
parent 03ba6b39ec
commit 181e4fd2fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -334,6 +334,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;
});