From 80627c8ce41f9aab67a0b4e13ad4849547d1c257 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 3 Oct 2013 09:50:20 +0200 Subject: [PATCH] Correctly represent boolean values in serialized data --- .../lib/ajaxplorer/plugins/conf.serial/plugins_configs.ser/10All | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/conf.serial/plugins_configs.ser/10All b/root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/conf.serial/plugins_configs.ser/10All index cc338b9..4f59ce6 100644 --- a/root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/conf.serial/plugins_configs.ser/10All +++ b/root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/conf.serial/plugins_configs.ser/10All @@ -34,9 +34,14 @@ $data->{'core.notifications'} = { 'core_driver' => 'core' } }, - 'USER_EVENTS' => '1' + 'USER_EVENTS' => '__true__' }; -$OUT = serialize($data); +$data = serialize($data); +# PHP::Serialization has now way to +# represent a boolean, so lets replace __true__ +# manually +$data =~ s/s:8:"__true__";/b:1;/g; +$OUT = $data; }