mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Prevent undefined strings in tracker.
This commit is contained in:
parent
4e77d95809
commit
a5362d9197
1 changed files with 4 additions and 0 deletions
|
|
@ -33,6 +33,10 @@
|
|||
/* Helper functions */
|
||||
|
||||
const encode = str => {
|
||||
if (!str) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
try {
|
||||
const result = decodeURI(str);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue