URI encode title, url and referrer in tracker.

This commit is contained in:
Mike Cao 2024-01-19 15:06:41 -08:00
parent 288836d4a5
commit 0d442b751d

View File

@ -44,9 +44,9 @@
hostname, hostname,
screen, screen,
language, language,
title, title: encodeURIComponent(title),
url: currentUrl, url: encodeURI(currentUrl),
referrer: currentRef, referrer: encodeURI(currentRef),
}); });
/* Event handlers */ /* Event handlers */