mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-20 16:56:02 +00:00
Fix display of ~username path in response.
This commit is contained in:
parent
3074d04916
commit
13fddbade8
@ -180,7 +180,8 @@ class CalDAVPrincipal
|
||||
$this->exists = true;
|
||||
$this->InitialiseRecord($usr);
|
||||
|
||||
if ( is_array($parameters) && isset($parameters['path']) && preg_match('#^/principals/#', $parameters['path']) ) {
|
||||
if ( is_array($parameters) && !isset($parameters['username']) && !isset($parameters['user_no'])
|
||||
&& isset($parameters['path']) && preg_match('{^/(~|principals/)}', $parameters['path']) ) {
|
||||
// Force it to match
|
||||
$this->url = $parameters['path'];
|
||||
$this->dav_name = $parameters['path'];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user