Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/DataCollector/CacheCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ public function onCacheEvent(CacheEvent $event)

if (isset($params['value'])) {
if ($this->collectValues) {
$params['value'] = htmlspecialchars($this->getDataFormatter()->formatVar($event->value));
if (is_string($params['value'])) {
$params['value'] = @unserialize($params['value']) ?: $params['value'];
}

$params['value'] = htmlspecialchars($this->getDataFormatter()->formatVar($params['value']));
} else {
unset($params['value']);
}
Expand Down