Skip to content

Commit

Permalink
Fixed critical vulnerability on cookie driver
Browse files Browse the repository at this point in the history
  • Loading branch information
Geolim4 committed Dec 30, 2016
1 parent afb1d15 commit c452720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/phpFastCache/Drivers/Cookie/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ protected function driverRead(CacheItemInterface $item)
// return null if no caching
// return value if in caching
$keyword = self::PREFIX . $item->getKey();
$x = isset($_COOKIE[ $keyword ]) ? $this->decode(json_decode($_COOKIE[ $keyword ], true)) : false;
$x = isset($_COOKIE[ $keyword ]) ? json_decode($_COOKIE[ $keyword ], true) : false;

if ($x == false) {
return null;
Expand Down

0 comments on commit c452720

Please sign in to comment.