Bugzilla – Attachment 185848 Details for
Bug 40719
Explicit turn off RELATIVE file paths for plugins for user-entered templates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40719: Explicitly disable off RELATIVE file paths for plugins for user-entered templates
Bug-40719-Explicitly-disable-off-RELATIVE-file-pat.patch (text/plain), 1.12 KB, created by
Kyle M Hall (khall)
on 2025-08-28 11:35:54 UTC
(
hide
)
Description:
Bug 40719: Explicitly disable off RELATIVE file paths for plugins for user-entered templates
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2025-08-28 11:35:54 UTC
Size:
1.12 KB
patch
obsolete
>From ec70cfd2241a89096a661f57600032198c4a2808 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Thu, 28 Aug 2025 07:34:39 -0400 >Subject: [PATCH] Bug 40719: Explicitly disable off RELATIVE file paths for > plugins for user-entered templates > >In bug 39184 we set EVAL_PERL and ABSOLUTE to 0, which is the default. RELATIVE also defaults to 0. For security we should probably specify that as well in case the default is changed somehow. > >Test Plan: >1) Apply this patch >2) Generate some notices >3) No change should be noted! >--- > C4/Letters.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/C4/Letters.pm b/C4/Letters.pm >index 89ad7d7ce25..6fc0f14659e 100644 >--- a/C4/Letters.pm >+++ b/C4/Letters.pm >@@ -1807,6 +1807,7 @@ sub _process_tt { > { > EVAL_PERL => 0, > ABSOLUTE => 0, >+ RELATIVE => 0, > PLUGIN_BASE => 'Koha::Template::Plugin', > COMPILE_EXT => $use_template_cache ? '.ttc' : '', > COMPILE_DIR => $use_template_cache ? C4::Context->config('template_cache_dir') : '', >-- >2.39.5 (Apple Git-154)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40719
: 185848