Revision 7759260d pithos/backends/lib/sqlite/xfeatures.py

b/pithos/backends/lib/sqlite/xfeatures.py
84 84
            return [inherited]
85 85
        
86 86
        q = ("select path, feature_id from xfeatures "
87
             "where path like ? and path != ? order by path")
88
        self.execute(q, (path + '%', path,))
87
             "where path like ? escape '\\' and path != ? order by path")
88
        self.execute(q, (self.escape_like(path) + '%', path,))
89 89
        return self.fetchall()
90 90
    
91 91
    def xfeature_create(self, path):

Also available in: Unified diff