Changeset 743:e5684f0346dc in hatta-dev


Ignore:
Timestamp:
01/24/10 14:31:27 (2 years ago)
Author:
sheep@…
Branch:
default
Message:

do escaping in one place only

File:
1 edited

Legend:

Unmodified
Added
Removed
  • hatta.py

    r742 r743  
    368368            raise werkzeug.exceptions.Forbidden(_(u"Can't read or write outside of the pages repository")) 
    369369 
     370 
    370371    def _file_path(self, title): 
    371         title = unicode(title).strip() 
    372         return os.path.join(self.path, 
    373                             werkzeug.url_quote(title, safe='')) 
     372        return os.path.join(self.repo_path, self._title_to_file(title)) 
    374373 
    375374    def _title_to_file(self, title): 
Note: See TracChangeset for help on using the changeset viewer.