Default allow_get_email_visibility to false, for security reasons.

This commit is contained in:
Andrew McMillan 2008-11-18 18:19:13 +13:00
parent 365d90531e
commit 3b7e77e6a4

View File

@ -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;
}