Check address book URI length before creation

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/33139/head
Joas Schilling 3 years ago
parent b044c7586b
commit d41841b4a7
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
  1. 4
      apps/dav/lib/CardDAV/CardDavBackend.php

@ -389,6 +389,10 @@ class CardDavBackend implements BackendInterface, SyncSupport {
* @throws BadRequest
*/
public function createAddressBook($principalUri, $url, array $properties) {
if (strlen($url) > 255) {
throw new BadRequest('URI too long. Address book not created');
}
$values = [
'displayname' => null,
'description' => null,

Loading…
Cancel
Save