Browse Source
Check address book URI length before creation
Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/33139/head
Joas Schilling
3 years ago
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
1 changed files with
4 additions and
0 deletions
-
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, |
|
|
|
|