Skip to content

Replace unserialize() with a Secure Alternative #7

@volodymyrdovhan

Description

@volodymyrdovhan

Hello,
The unserialize() function is considered potentially dangerous and is flagged as a security risk. Please refer to the Moodle Plugin Contribution Checklist for security best practices.
You should replace unserialize() with a more secure solution, such as json_encode() and json_decode(), or another safer alternative.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    contribFeedback MoodleHQ - https://moodle.atlassian.net/browse/CONTRIB-10105

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions