Make sure generated folder IDs do not start with a digit

This commit is contained in:
Aleksander Machniak 2022-11-30 16:15:43 +01:00
parent 52caa307fd
commit 2079f6e3fa

View file

@ -182,7 +182,8 @@ class kolab_storage_dav
$href = substr($href, strlen($rootPath));
}
return md5(rtrim($uri, '/') . '/' . trim($href, '/'));
// Start with a letter to prevent from all kind of issues if it starts with a digit
return 'f' . md5(rtrim($uri, '/') . '/' . trim($href, '/'));
}
/**