diff --git a/core/Tracker/TableLogAction.php b/core/Tracker/TableLogAction.php
index 50696a70f381a789e085439cc562e7c3904d8796..2f66a268f66f4240428e18fcdb58ac7ff2ea6f80 100644
--- a/core/Tracker/TableLogAction.php
+++ b/core/Tracker/TableLogAction.php
@@ -269,6 +269,8 @@ class TableLogAction
         $actionsTypesStoredUnsanitized = array(
             $actionType == Action::TYPE_DOWNLOAD,
             $actionType == Action::TYPE_OUTLINK,
+            $actionType == Action::TYPE_PAGE_URL,
+            $actionType == Action::TYPE_CONTENT,
         );
 
         return in_array($actionType, $actionsTypesStoredUnsanitized);
diff --git a/core/Tracker/Visit/ReferrerSpamFilter.php b/core/Tracker/Visit/ReferrerSpamFilter.php
index 3d49362444ca5d55aa9bd46078330163239470d6..177200bf6a75bbb39ebc928484c9bf2d92489603 100644
--- a/core/Tracker/Visit/ReferrerSpamFilter.php
+++ b/core/Tracker/Visit/ReferrerSpamFilter.php
@@ -58,6 +58,10 @@ class ReferrerSpamFilter
             $cache->save($cacheId, $list);
         }
 
+        if(!is_array($list)) {
+            Common::printDebug('Warning: could not read list of spammers from cache.');
+            return array();
+        }
         return $list;
     }