Skip to content
Extraits de code Groupes Projets
Valider ef48e70f rédigé par YAMAMOTO Takashi's avatar YAMAMOTO Takashi
Parcourir les fichiers

Merge branch 'master' of https://github.com/piwik/piwik into bugfix

parents f6b646f0 13295613
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -269,6 +269,8 @@ class TableLogAction ...@@ -269,6 +269,8 @@ class TableLogAction
$actionsTypesStoredUnsanitized = array( $actionsTypesStoredUnsanitized = array(
$actionType == Action::TYPE_DOWNLOAD, $actionType == Action::TYPE_DOWNLOAD,
$actionType == Action::TYPE_OUTLINK, $actionType == Action::TYPE_OUTLINK,
$actionType == Action::TYPE_PAGE_URL,
$actionType == Action::TYPE_CONTENT,
); );
return in_array($actionType, $actionsTypesStoredUnsanitized); return in_array($actionType, $actionsTypesStoredUnsanitized);
......
...@@ -58,6 +58,10 @@ class ReferrerSpamFilter ...@@ -58,6 +58,10 @@ class ReferrerSpamFilter
$cache->save($cacheId, $list); $cache->save($cacheId, $list);
} }
if(!is_array($list)) {
Common::printDebug('Warning: could not read list of spammers from cache.');
return array();
}
return $list; return $list;
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter