diff options
author | Stefan Giehl <stefan@matomo.org> | 2019-01-22 08:04:20 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2019-01-22 08:04:20 +0300 |
commit | 8d39c9c2b1c3e8645065ced9d7873fc7a86fc1c0 (patch) | |
tree | 28417d225d2fbdc05cfad626865864e927a7a99e /plugins/Referrers | |
parent | f845d5290931829dab8d038ae10991692a387c48 (diff) |
Ensure to unsanitize search keyword (#13928)
Diffstat (limited to 'plugins/Referrers')
-rw-r--r-- | plugins/Referrers/VisitorDetails.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Referrers/VisitorDetails.php b/plugins/Referrers/VisitorDetails.php index 6aef0c1ec6..e413d5386d 100644 --- a/plugins/Referrers/VisitorDetails.php +++ b/plugins/Referrers/VisitorDetails.php @@ -8,6 +8,7 @@ */ namespace Piwik\Plugins\Referrers; +use Piwik\Common; use Piwik\Plugins\Live\VisitorDetailsAbstract; use Piwik\UrlHelper; use Piwik\View; @@ -53,7 +54,7 @@ class VisitorDetails extends VisitorDetailsAbstract protected function getKeyword() { - $keyword = $this->details['referer_keyword']; + $keyword = Common::unsanitizeInputValue($this->details['referer_keyword']); if ($this->getReferrerType() == 'search') { $keyword = API::getCleanKeyword($keyword); |