calcurse-caldav: Ensure path always starts/ends with a slash

Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
Lukas Fleischer 2016-01-23 15:05:53 +01:00
parent badbd71275
commit c2e6b31357

View File

@ -332,7 +332,7 @@ except FileNotFoundError as e:
die('Configuration file not found: %s' % (configfn))
hostname = config.get('General', 'HostName')
path = config.get('General', 'Path').rstrip('/') + '/'
path = '/' + config.get('General', 'Path').strip('/') + '/'
if config.has_option('General', 'InsecureSSL'):
insecure_ssl = config.getboolean('General', 'InsecureSSL')