瀏覽代碼

Ensure '/' at beginning of radicale prefix

Bastien Sevajol (Algoo) 8 年之前
父節點
當前提交
4e70b9e922
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      tracim/tracim/config/app_cfg.py

+ 3 - 0
tracim/tracim/config/app_cfg.py 查看文件

@@ -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(