Skip to content

Commit 14c5f04

Browse files
comxdxabbuh
authored andcommitted
Add "allowed_classes" argument for unserialize()
1 parent a5b0e6d commit 14c5f04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/entity_provider.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ For this entry, suppose that you already have a ``User`` entity inside an
133133
$this->password,
134134
// see section on salt below
135135
// $this->salt
136-
) = unserialize($serialized);
136+
) = unserialize($serialized, ['allowed_classes' => false]);
137137
}
138138
}
139139

0 commit comments

Comments
 (0)