Merge pull request #7 from club-1/fix-create-calendar-trailing-slash
fix: create calendars with source ending with '/'
This commit is contained in:
commit
89cdebc5ca
1 changed files with 1 additions and 1 deletions
|
@ -240,7 +240,7 @@ class caldav_driver extends calendar_driver
|
|||
$source['caldav_pass'] = $this->_decrypt_pass($source['caldav_pass']);
|
||||
|
||||
$server_url = self::_encode_url($source['caldav_url']);
|
||||
$server_path = parse_url($server_url, PHP_URL_PATH);
|
||||
$server_path = rtrim(parse_url($server_url, PHP_URL_PATH), '/');
|
||||
$calId = $this->cal->generate_uid();
|
||||
$path = "/calendars/$source[caldav_user]/$calId";
|
||||
|
||||
|
|
Loading…
Reference in a new issue