diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2016-01-23 15:05:53 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2016-01-23 15:05:53 +0100 |
commit | c2e6b313571b46884ebb1c65727130020c312ad6 (patch) | |
tree | 7400447ad53ccfc9db991c74ea6ef7b5c368d487 /contrib/caldav/calcurse-caldav.py | |
parent | badbd71275d67c773db37b0f71c8f5dad9183d58 (diff) | |
download | calcurse-c2e6b313571b46884ebb1c65727130020c312ad6.zip |
calcurse-caldav: Ensure path always starts/ends with a slash
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'contrib/caldav/calcurse-caldav.py')
-rwxr-xr-x | contrib/caldav/calcurse-caldav.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/caldav/calcurse-caldav.py b/contrib/caldav/calcurse-caldav.py index 284bbb4..0b1499d 100755 --- a/contrib/caldav/calcurse-caldav.py +++ b/contrib/caldav/calcurse-caldav.py @@ -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') |