]> source.dussan.org Git - nextcloud-server.git/commit
Fix undefined class property access after upgrade from 19 to 20 22641/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Mon, 7 Sep 2020 09:21:16 +0000 (11:21 +0200)
committerChristoph Wurst <christoph@winzerhof-wurst.at>
Mon, 7 Sep 2020 11:31:24 +0000 (13:31 +0200)
commitadf100a42ffdbcc25eda717c8a80e0ba0458f437
treefb592835037c0d49d517ad16a022ea496580bcbd
parent3eb748fc39e24c57f2ba57ed4fd089dd746bdd61
Fix undefined class property access after upgrade from 19 to 20

The serialized data in 19 has one property less and this was not
considered in the code. Hence adding a fallback. Moreover I'm changing
the deserialization into an array instead of object, as that is the
safer option.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
lib/private/Authentication/LoginCredentials/Store.php
tests/lib/Authentication/LoginCredentials/StoreTest.php