calcurse-caldav: Ensure path always starts/ends with a slash
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
parent
badbd71275
commit
c2e6b31357
@ -332,7 +332,7 @@ except FileNotFoundError as e:
|
|||||||
die('Configuration file not found: %s' % (configfn))
|
die('Configuration file not found: %s' % (configfn))
|
||||||
|
|
||||||
hostname = config.get('General', 'HostName')
|
hostname = config.get('General', 'HostName')
|
||||||
path = config.get('General', 'Path').rstrip('/') + '/'
|
path = '/' + config.get('General', 'Path').strip('/') + '/'
|
||||||
|
|
||||||
if config.has_option('General', 'InsecureSSL'):
|
if config.has_option('General', 'InsecureSSL'):
|
||||||
insecure_ssl = config.getboolean('General', 'InsecureSSL')
|
insecure_ssl = config.getboolean('General', 'InsecureSSL')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user