Skip to content
Permalink
Browse files

#7978 - fix for user agent quotes issue

  • Loading branch information...
saleemkce committed Jun 6, 2015
1 parent b0bf81c commit b8cafeee25b6422cdf829441a63eba0e778cf529
Showing with 4 additions and 0 deletions.
  1. +4 −0 plugins/SitesManager/API.php
@@ -856,6 +856,10 @@ public function setGlobalExcludedUserAgents($excludedUserAgents)
{
Piwik::checkUserHasSuperUserAccess();
// converts html entities back to original form & removes quotes if present.
$excludedUserAgents = html_entity_decode($excludedUserAgents);
$excludedUserAgents = str_replace('"', "", $excludedUserAgents);
// update option
$excludedUserAgents = $this->checkAndReturnCommaSeparatedStringList($excludedUserAgents);
Option::set(self::OPTION_EXCLUDED_USER_AGENTS_GLOBAL, $excludedUserAgents);

0 comments on commit b8cafee

Please sign in to comment.
You can’t perform that action at this time.