T8358: Fix DAV folder owner encoding

This commit is contained in:
Aleksander Machniak 2024-04-18 15:09:51 +02:00
parent 95cc2eb973
commit ed50d5fc58

View file

@ -110,7 +110,7 @@ class kolab_storage_dav_folder extends kolab_storage_folder
if (isset($this->attributes['owner'])) {
// Assume username/email is the last part of a principal href
$path = explode('/', trim($this->attributes['owner'], '/'));
$this->owner = end($path);
$this->owner = rawurldecode(end($path));
} else {
$rcube = rcube::get_instance();
$this->owner = $rcube->get_user_name();