Skip to content

Commit 6d4cef2

Browse files
committed
minor #9563 Add "allowed_classes" argument for unserialize() (comxd)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #9563). Discussion ---------- Add "allowed_classes" argument for unserialize() Commits ------- 14c5f04 Add "allowed_classes" argument for unserialize()
2 parents a5b0e6d + 14c5f04 commit 6d4cef2

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)