Have a sensible default setting for the UserAgent

This commit is contained in:
Andrew Ruthven 2024-02-18 01:47:51 +13:00
parent 28d9105810
commit 4ae36c132d
2 changed files with 7 additions and 3 deletions

View File

@ -366,11 +366,12 @@ $c->admin_email = 'calendar-admin@example.com';
/**
* External subscription (BIND) user agent string
* Required if your remote calendar only delivers to known user agents.
* You may need to set a specific stirng if your remote calendar only delivers
* to known user agents.
*
* Default: none
* Default: DAViCal/$version
*/
// $c->external_ua_string = '';
// $c->external_ua_string = "DAViCal/" . $c->version_string;
/**
* If you want to force DAViCal to use HTTP Digest Authentication for CalDAV

View File

@ -312,6 +312,9 @@ if ( isset($c->version_string) && preg_match( '/(\d+)\.(\d+)\.(\d+)(.*)/', $c->v
// What is our minimum supported version of PHP?
$c->minimum_php_version = '5.4.0';
// Default UserAgent string when fetching content from elsewhere.
$c->external_ua_string = "DAViCal/" . $c->version_string;
/**
* Force the domain name to what was in the configuration file
*/