Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4cc37df

Browse files
security #cve-2019-18889 [Cache] forbid serializing AbstractAdapter and TagAwareAdapter instances (nicolas-grekas)
This PR was merged into the 3.4 branch.
2 parentsb21025b +1507413 commit4cc37df

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

‎src/Symfony/Component/Cache/Adapter/AbstractAdapter.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,16 @@ public function commit()
275275
return$ok;
276276
}
277277

278+
publicfunction__sleep()
279+
{
280+
thrownew \BadMethodCallException('Cannot serialize'.__CLASS__);
281+
}
282+
283+
publicfunction__wakeup()
284+
{
285+
thrownew \BadMethodCallException('Cannot unserialize'.__CLASS__);
286+
}
287+
278288
publicfunction__destruct()
279289
{
280290
if ($this->deferred) {

‎src/Symfony/Component/Cache/Adapter/TagAwareAdapter.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,16 @@ public function commit()
282282
return$this->invalidateTags([]);
283283
}
284284

285+
publicfunction__sleep()
286+
{
287+
thrownew \BadMethodCallException('Cannot serialize'.__CLASS__);
288+
}
289+
290+
publicfunction__wakeup()
291+
{
292+
thrownew \BadMethodCallException('Cannot unserialize'.__CLASS__);
293+
}
294+
285295
publicfunction__destruct()
286296
{
287297
$this->commit();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp