[Koha-bugs] [Bug 17989] Stricter control on source directory for html templates

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Aug 22 12:58:27 CEST 2017


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

Josef Moravec <josef.moravec at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #66272|0                           |1
        is obsolete|                            |
  Attachment #66273|0                           |1
        is obsolete|                            |
  Attachment #66274|0                           |1
        is obsolete|                            |
  Attachment #66275|0                           |1
        is obsolete|                            |
  Attachment #66276|0                           |1
        is obsolete|                            |

--- Comment #12 from Josef Moravec <josef.moravec at gmail.com> ---
Created attachment 66317
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=66317&action=edit
[SIGNED-OFF] Bug 17989: Centralize bad template check

The bad template check in get_template_and_user can be removed, since
this check has been added in gettemplate on bug 18010.

The check moves here to a new sub in C4::Templates. And will be extended
in a follow-up.

Removed unused variable $path in gettemplatefile.

Test plan:
[1] Run t/db_dependent/Auth.t (get_template_and_user bad calls).
[2] Run t/db_dependent/Templates.t (bad call to gettemplate).

Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>

Signed-off-by: Josef Moravec <josef.moravec at gmail.com>

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


More information about the Koha-bugs mailing list