[Tickets #14585] horde/nag/lib/Nag.php : 1733 [getSyncLists()]: Wron serialized array in prefs triggers warning
noreply at bugs.horde.org
noreply at bugs.horde.org
Tue Feb 21 22:44:44 UTC 2017
BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE
E-MAIL-ADRESSE WERDEN NICHT GELESEN.
Ticket-URL: https://bugs.horde.org/ticket/14585
------------------------------------------------------------------------------
Ticket | 14585
Erstellt Von | torben at dannhauer.info
Zusammenfassung | horde/nag/lib/Nag.php : 1733 [getSyncLists()]: Wron
| serialized array in prefs triggers warning
Warteschlange | Nag
Version | Git master
Typ | Bug
Status | Unconfirmed
Priorität | 1. Low
Milestone |
Patch | 1
Zuständige |
------------------------------------------------------------------------------
torben at dannhauer.info (2017-02-21 22:44) hat geschrieben:
When an array with NULL Value is stored in the Horde prefs, Nag thows
an PHP warning: 'array_flip(): Can only flip STRING and INTEGER values!'
This is caused by an erroneous Horde Pref like 'a:1:{i:0;N;}'.
Deserialized, this array contains a Null Value and is this not
flippable.
When loaded from the DB and deserialized, the array should be validated with
$cs = array_filter($cs); before it is used.
This is similar to
https://github.com/horde/horde/commit/3fdf04396ec905d53e762cfbac92f070f2487fda
for Mnemo
More information about the bugs
mailing list