Fix error when contacts folder contains non-alphanum chars (Bifrost#T245789)

By removing outdated and redundant check.
This commit is contained in:
Aleksander Machniak 2019-09-24 10:41:53 +00:00
parent bb3f96cc97
commit 84fd1d18aa

View file

@ -406,13 +406,7 @@ class kolab_addressbook extends rcube_plugin
public function get_address_book($p)
{
if ($p['id']) {
$id = kolab_storage::id_decode($p['id']);
// check for falsely base64 decoded identifier
if (preg_match('![^A-Za-z0-9=/+&._ -]!', $id)) {
$id = $p['id'];
}
$id = kolab_storage::id_decode($p['id']);
$folder = kolab_storage::get_folder($id);
// try with unencoded (old-style) identifier