Kaynağa Gözat

Log unsafe paths when discovering collections

Unrud 9 yıl önce
ebeveyn
işleme
c6c32945a0
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      radicale/storage.py

+ 2 - 1
radicale/storage.py

@@ -481,8 +481,9 @@ class Collection(BaseCollection):
         cls._makedirs_synced(folder)
         try:
             filesystem_path = path_to_filesystem(folder, sane_path)
-        except ValueError:
+        except ValueError as e:
             # Path is unsafe
+            cls.logger.info(e)
             return
 
         # Check if the path exists and if it leads to a collection or an item