X-Git-Url: https://code.grnet.gr/git/pithos/blobdiff_plain/2bdc9dc4a9466f2224f2baf3e95ec37b425b7b47..7759260d4dd41e49726f000e4573a2fbe48f8ca3:/pithos/backends/lib/sqlite/xfeatures.py diff --git a/pithos/backends/lib/sqlite/xfeatures.py b/pithos/backends/lib/sqlite/xfeatures.py index d1e5df6..0f013da 100644 --- a/pithos/backends/lib/sqlite/xfeatures.py +++ b/pithos/backends/lib/sqlite/xfeatures.py @@ -84,8 +84,8 @@ class XFeatures(DBWorker): return [inherited] q = ("select path, feature_id from xfeatures " - "where path like ? and path != ? order by path") - self.execute(q, (path + '%', path,)) + "where path like ? escape '\\' and path != ? order by path") + self.execute(q, (self.escape_like(path) + '%', path,)) return self.fetchall() def xfeature_create(self, path):