The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
update comment
Steven Tey9672b2275ebe
diff --git a/apps/web/lib/api/links/utils.ts b/apps/web/lib/api/links/utils.tsindex 1b4b9bef5e..6cbb09b450 100644--- a/apps/web/lib/api/links/utils.ts+++ b/apps/web/lib/api/links/utils.ts@@ -125,9 +125,11 @@ export function processKey({ domain, key }: { domain: string; key: string }) {// remove all leading and trailing slashes from keykey = key.replace(/^\/+|\/+$/g, "");- // for default dub domains, remove all special characters- // unicode normalization to remove accents / diacritical marks- // this is to prevent phishing/typo squatting+ /*+ for default dub domains, remove all special characters + unicode normalization+ to remove accents / diacritical marks. this is to prevent phishing/typo squatting+ for custom domains this is fine, since only the workspace can set the key+ */if (isDubDomain(domain)) {key = key.normalize("NFD").replace(/[\u0300-\u036f]/g, "");}