mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-24 02:24:39 +00:00
Default allow_get_email_visibility to false, for security reasons.
This commit is contained in:
parent
365d90531e
commit
3b7e77e6a4
@ -19,6 +19,7 @@ $c->system_name = "DAViCal CalDAV Server";
|
||||
$c->domain_name = $_SERVER['SERVER_NAME'];
|
||||
$c->save_time_zone_defs = true;
|
||||
$c->collections_always_exist = true;
|
||||
$c->allow_get_email_visibility = false;
|
||||
$c->home_calendar_name = 'home';
|
||||
$c->enable_row_linking = true;
|
||||
$c->http_auth_mode = 'Basic';
|
||||
@ -243,7 +244,7 @@ function ConstructURL( $partial_path ) {
|
||||
|
||||
$url = $c->_url_script_path . $partial_path;
|
||||
$url = preg_replace( '#^(https?://.+)//#', '$1/', $url ); // Ensure we don't double any '/'
|
||||
$url = preg_replace('#^https?://[^/]+#', '', $url );
|
||||
$url = preg_replace('#^https?://[^/]+#', '', $url ); // Remove any protocol + hostname portion
|
||||
return $url;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user