Revision 235a4227 snf-pithos-backend/pithos/backends/lib/sqlalchemy/public.py

b/snf-pithos-backend/pithos/backends/lib/sqlalchemy/public.py
39 39

  
40 40
from pithos.backends.random_word import get_random_word
41 41

  
42
from dbworker import ESCAPE_CHAR
43

  
42 44
import logging
43 45

  
44 46
logger = logging.getLogger(__name__)
......
124 126
    def public_list(self, prefix):
125 127
        s = select([self.public.c.path, self.public.c.url])
126 128
        s = s.where(self.public.c.path.like(
127
            self.escape_like(prefix) + '%', escape='\\'))
129
            self.escape_like(prefix) + '%', escape=ESCAPE_CHAR))
128 130
        s = s.where(self.public.c.active == True)
129 131
        r = self.conn.execute(s)
130 132
        rows = r.fetchall()

Also available in: Unified diff