diff options
author | Stefan Giehl <stefan@matomo.org> | 2022-06-28 08:39:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-28 08:39:12 +0300 |
commit | ed6652b2e3937b02d9ca519b195298e231acc24d (patch) | |
tree | 7dae1f2deccc3207ea0b3d29574d9b0f4b5e3d6e /plugins | |
parent | 4753debbb8ae9cb5666101c4f7d50c0059674194 (diff) |
Ensure downoad urls are decoded in visits log (#19400)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Live/VisitorDetails.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Live/VisitorDetails.php b/plugins/Live/VisitorDetails.php index e709ffbb39..aad6fa64d9 100644 --- a/plugins/Live/VisitorDetails.php +++ b/plugins/Live/VisitorDetails.php @@ -97,7 +97,7 @@ class VisitorDetails extends VisitorDetailsAbstract $sitesModel = new \Piwik\Plugins\SitesManager\Model(); - if (isset($action['type']) && $action['type'] == 'outlink' && isset($action['url'])) { + if (isset($action['type']) && in_array($action['type'] ,['outlink', 'download']) && isset($action['url'])) { $action['url'] = html_entity_decode($action['url'], ENT_QUOTES, "UTF-8"); } |