[Koha-bugs] [Bug 26140] New: Move .tt files to a tt/ template root directory

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Aug 5 09:23:38 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26140

            Bug ID: 26140
           Summary: Move .tt files to a tt/ template root directory
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Templates
          Assignee: oleonard at myacpl.org
          Reporter: dcook at prosentient.com.au
        QA Contact: testopia at bugs.koha-community.org

At the moment, Koha deploys Template::Toolkit *.tt files to
/usr/share/koha/intranet/htdocs and /usr/share/koha/opac/htdocs. Those are the
directories (ie DocumentRoot) from which Apache serves static files.

If you type in http://<mykoha>/opac-tmpl/bootstrap/en/modules/opac-main.tt,
Apache will serve you the template file.

It's not really a security issue per se, but it's completely unnecessary. 

It would be better to store templates somewhere like
/usr/share/koha/tt/intranet and /usr/share/koha/tt/opac.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list