e107inc / e107

e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
https://e107.org
GNU General Public License v3.0
318 stars 212 forks source link

[Bug]: Plugin Preferences become corrupted if they exceed 64kb in size. #5203

Closed CaMer0n closed 3 months ago

CaMer0n commented 3 months ago

What e107 version are you using?

Latest Github version (just updated)

Bug description

Large plugins containing html and other data may exceed the data limit for a plugin's preference causing all preferences to fail to load as the data becomes truncated and the 'array' that is stored becomes incomplete, causing a syntax error and a 'read error'.

How to reproduce

Attempt to store a large array in e107_core table in the e107_value field.

Expected behavior

The full array value is stored in e107_value.

What browser(s) are you seeing the problem on?

Firefox

PHP Version

PHP 8.3