diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2019-07-29 07:20:57 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2019-07-29 07:20:57 +0300 |
commit | f567986d5bca174615d331c34d235808617a744b (patch) | |
tree | 36e762075a29ab0fc43cdb44b3a271051de3e6da /core/Plugin | |
parent | 521eb11cc27491b3274f585f45ef92e611e40a09 (diff) |
Add new property to store un-encoded site name for use in JS. (#14663)
Diffstat (limited to 'core/Plugin')
-rw-r--r-- | core/Plugin/Controller.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/Plugin/Controller.php b/core/Plugin/Controller.php index 061107f7d2..39d8f837b8 100644 --- a/core/Plugin/Controller.php +++ b/core/Plugin/Controller.php @@ -15,6 +15,7 @@ use Piwik\API\Request; use Piwik\Common; use Piwik\Config as PiwikConfig; use Piwik\Container\StaticContainer; +use Piwik\DataTable\Filter\SafeDecodeLabel; use Piwik\Date; use Piwik\Exception\NoPrivilegesException; use Piwik\Exception\NoWebsiteFoundException; @@ -614,6 +615,7 @@ abstract class Controller $this->setPeriodVariablesView($view); $view->siteName = $this->site->getName(); + $view->siteNameDecoded = Common::unsanitizeInputValue($view->siteName); $view->siteMainUrl = $this->site->getMainUrl(); $siteTimezone = $this->site->getTimezone(); |