Rev2105, Fix database updating when path contains special characters

This commit is contained in:
shortcutme 2017-06-15 13:30:06 +02:00
parent 1f83b6691b
commit 97b3563e6b
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 1 additions and 2 deletions

View file

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

View file

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