Difference in function _safe_unserialize in fresh 2.0.13 and patched installs

Started by Adrek, May 03, 2017, 04:56:28 PM

Previous topic - Next topic

Adrek

Line 4545 in Subs.php:

In SMF 2.0.11 > patch 2.0.12 > patch 2.0.13:
else if($type == 'a' && preg_match('/^a:([0-9]+):{(.*)/s', $str, $matches) && $matches[1] < 256)

Fresh SMF 2.0.13:
else if($type == 'a' && preg_match('/^a:([0-9]+):{(.*)/s', $str, $matches))
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

Arantor

This is because the latter line should be used and I thought 2.0.13 fixed that as a patch to ensure that it didn't fall over and truncate content.

Advertisement: