From 97b3563e6b4e88eba6ac338a52981806297823fc Mon Sep 17 00:00:00 2001 From: shortcutme Date: Thu, 15 Jun 2017 13:30:06 +0200 Subject: [PATCH] Rev2105, Fix database updating when path contains special characters --- src/Config.py | 2 +- src/Db/Db.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Config.py b/src/Config.py index f45cea41..e31b23bb 100644 --- a/src/Config.py +++ b/src/Config.py @@ -10,7 +10,7 @@ class Config(object): def __init__(self, argv): self.version = "0.5.5" - self.rev = 2103 + self.rev = 2105 self.argv = argv self.action = None self.config_file = "zeronet.conf" diff --git a/src/Db/Db.py b/src/Db/Db.py index de711a21..026a36c3 100644 --- a/src/Db/Db.py +++ b/src/Db/Db.py @@ -225,7 +225,6 @@ class Db(object): def updateJson(self, file_path, file=None, cur=None): if not file_path.startswith(self.db_dir): return False # Not from the db dir: Skipping - relative_path = re.sub("^%s" % self.db_dir, "", file_path) # File path realative to db file # Check if filename matches any of mappings in schema matched_maps = [] for match, map_settings in self.schema["maps"].items():