mirror of
https://github.com/nextcloud/server.git
synced 2026-04-27 17:18:48 -04:00
Check address book URI length before creation
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
b044c7586b
commit
d41841b4a7
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Reference in a new issue