Browse Source

Ensure '/' at beginning of radicale prefix

Bastien Sevajol (Algoo) 7 years ago
parent
commit
4e70b9e922
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tracim/tracim/config/app_cfg.py

+ 3 - 0
tracim/tracim/config/app_cfg.py View File

@@ -294,6 +294,9 @@ class CFG(object):
294 294
         # Ensure finished by '/'
295 295
         if '/' != self.RADICALE_CLIENT_BASE_URL_PREFIX[-1]:
296 296
             self.RADICALE_CLIENT_BASE_URL_PREFIX += '/'
297
+        if '/' != self.RADICALE_CLIENT_BASE_URL_PREFIX[0]:
298
+            self.RADICALE_CLIENT_BASE_URL_PREFIX \
299
+                = '/' + self.RADICALE_CLIENT_BASE_URL_PREFIX
297 300
 
298 301
         if not self.RADICALE_CLIENT_BASE_URL_HOST:
299 302
             logger.warning(