aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/caldav
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2016-01-23 15:05:53 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2016-01-23 15:05:53 +0100
commitc2e6b313571b46884ebb1c65727130020c312ad6 (patch)
tree7400447ad53ccfc9db991c74ea6ef7b5c368d487 /contrib/caldav
parentbadbd71275d67c773db37b0f71c8f5dad9183d58 (diff)
downloadcalcurse-c2e6b313571b46884ebb1c65727130020c312ad6.tar.gz
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')
-rwxr-xr-xcontrib/caldav/calcurse-caldav.py2
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')