Commit c1618d81 authored by mitshel's avatar mitshel
Browse files

Fix problem with start slash in href and mime-type format string int download link

parent 7155b9d2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ class opdsClient():
        if mode==modeWSGI:
           self.modulePath=self.cfg.WSGI_PATH
        elif mode==modeINT:
           self.modulePath=''
           self.modulePath='/'
        else:
           self.modulePath=self.cfg.CGI_PATH
        self.opdsdb=sopdsdb.opdsDatabase(self.cfg.DB_NAME,self.cfg.DB_USER,self.cfg.DB_PASS,self.cfg.DB_HOST,self.cfg.ROOT_LIB)
+1 −1
Original line number Diff line number Diff line
@@ -160,7 +160,7 @@ class opdsTemplate():
                               '<id>id:%(e_id)s</id>')
       self.document_entry_acq_book_link_alternate=('<link type="application/%(format)s" rel="alternate" href="%(modulepath)s?id=91%(item_id)s"/>'
                               )
       self.document_entry_acq_book_link=('<link type="application/%(format)s" href="%(modulepath)s?id=%(id)s%(item_id)s" rel="http://opds-spec.org/acquisition" />'
       self.document_entry_acq_book_link=('<link type="application/%(format)s" href="%(modulepath)s?id=%(id)s%(item_id)s" rel="http://opds-spec.org/acquisition/open-access" />'
                               )
       self.document_entry_acq_link_finish=''

Loading