diff --git a/CHANGELOG.md b/CHANGELOG.md index 36adff81d5..1f12d5a565 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## 2020-12-11, v1.12.1 + +This is a security release that prevents a hacker to execute code on the server. + ## 2020-11-23, v1.12.0 - Fix ro_RO first and last day of year calculation offset (#65) diff --git a/src/Faker/Generator.php b/src/Faker/Generator.php index e7c1417fac..836ed5bdd3 100644 --- a/src/Faker/Generator.php +++ b/src/Faker/Generator.php @@ -293,4 +293,9 @@ public function __destruct() { $this->seed(); } + + public function __wakeup() + { + $this->formatters = []; + } }