Kaynağa Gözat

Ensure '/' at beginning of radicale prefix

Bastien Sevajol (Algoo) 8 yıl önce
ebeveyn
işleme
4e70b9e922
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      tracim/tracim/config/app_cfg.py

+ 3 - 0
tracim/tracim/config/app_cfg.py Dosyayı Görüntüle

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