Edgewall Software

Ticket #240: genshi0.5_proper_relative_to.patch

File genshi0.5_proper_relative_to.patch, 557 bytes (added by j, 15 years ago)

patch to check filename

  • genshi/template/loader.py

     
    163163        """
    164164        if cls is None:
    165165            cls = self.default_class
    166         if relative_to and not os.path.isabs(relative_to):
     166        if relative_to and not os.path.isabs(filename):
    167167            filename = os.path.join(os.path.dirname(relative_to), filename)
    168168        filename = os.path.normpath(filename)
    169169        cachekey = filename