tests and eurc
All checks were successful
Deploy / build-deploy (push) Successful in 4m19s

This commit is contained in:
Jorijn van der Graaf 2026-08-15 00:54:05 +02:00
commit 749f525f83
44 changed files with 5380 additions and 3532 deletions

View file

@ -158,6 +158,10 @@ export SafeHtml Url(std::string_view attrName, std::string_view href) {
StartsWithNoCase(cleaned, "https://")
|| StartsWithNoCase(cleaned, "http://")
|| StartsWithNoCase(cleaned, "mailto:")
// EIP-681 payment links on the order page. Like mailto:, a pure
// protocol-handler scheme: the browser hands it to a wallet or does
// nothing. No script context is reachable through it.
|| StartsWithNoCase(cleaned, "ethereum:")
// Site-relative, but NOT protocol-relative ("//evil.example" would
// leave the origin while looking like a path).
|| (cleaned.size() >= 1 && cleaned[0] == '/'