unserialize() is insecure unless allowed classes are limited.

Created on 12 April 2023, over 1 year ago
Updated 26 April 2023, over 1 year ago

Problem/Motivation

 ERROR | unserialize() is insecure unless allowed classes are limited. Use a safe format like JSON or use the allowed_classes option.

Proposed resolution

$diff = unserialize($diff, ['allowed_classes' => FALSE]);

๐Ÿ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia omkar_yewale Mumbai

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024