[Bps-public-commit] rt-extension-articletemplates branch, request-args, created. 0.04-2-g4ae8949

Thomas Sibley trs at bestpractical.com
Tue Dec 6 14:25:22 EST 2011


The branch, request-args has been created
        at  4ae8949779918d86e26abba30eb12c8586a12508 (commit)

- Log -----------------------------------------------------------------
commit 4ae8949779918d86e26abba30eb12c8586a12508
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Tue Dec 6 14:14:53 2011 -0500

    Pass in the request args for the article template to use
    
    It's user-controlled input so don't trust it and be careful with what
    you do with it.

diff --git a/html/Callbacks/RT-Extension-ArticleTemplates/Articles/Article/Elements/Preformatted/ProcessContent b/html/Callbacks/RT-Extension-ArticleTemplates/Articles/Article/Elements/Preformatted/ProcessContent
index bb10e75..ba06c77 100644
--- a/html/Callbacks/RT-Extension-ArticleTemplates/Articles/Article/Elements/Preformatted/ProcessContent
+++ b/html/Callbacks/RT-Extension-ArticleTemplates/Articles/Article/Elements/Preformatted/ProcessContent
@@ -16,7 +16,7 @@
 %# 
 %# END LICENSE BLOCK
 <%init>
-my ($new, $msg) = $Article->ParseTemplate( $$content, Ticket => $Ticket );
+my ($new, $msg) = $Article->ParseTemplate( $$content, Ticket => $Ticket, request_args => { $m->request_args } );
 unless ( defined $new && length $new ) {
     $RT::Logger->error("Couldn't parse article's content: $msg");
 } else {
diff --git a/html/Callbacks/RT-Extension-ArticleTemplates/Articles/Elements/SubjectOverride/ProcessContent b/html/Callbacks/RT-Extension-ArticleTemplates/Articles/Elements/SubjectOverride/ProcessContent
index bb10e75..ba06c77 100644
--- a/html/Callbacks/RT-Extension-ArticleTemplates/Articles/Elements/SubjectOverride/ProcessContent
+++ b/html/Callbacks/RT-Extension-ArticleTemplates/Articles/Elements/SubjectOverride/ProcessContent
@@ -16,7 +16,7 @@
 %# 
 %# END LICENSE BLOCK
 <%init>
-my ($new, $msg) = $Article->ParseTemplate( $$content, Ticket => $Ticket );
+my ($new, $msg) = $Article->ParseTemplate( $$content, Ticket => $Ticket, request_args => { $m->request_args } );
 unless ( defined $new && length $new ) {
     $RT::Logger->error("Couldn't parse article's content: $msg");
 } else {
diff --git a/html/Callbacks/RT-Extension-ArticleTemplates/Elements/SubjectOverride/ProcessContent b/html/Callbacks/RT-Extension-ArticleTemplates/Elements/SubjectOverride/ProcessContent
index bb10e75..ba06c77 100644
--- a/html/Callbacks/RT-Extension-ArticleTemplates/Elements/SubjectOverride/ProcessContent
+++ b/html/Callbacks/RT-Extension-ArticleTemplates/Elements/SubjectOverride/ProcessContent
@@ -16,7 +16,7 @@
 %# 
 %# END LICENSE BLOCK
 <%init>
-my ($new, $msg) = $Article->ParseTemplate( $$content, Ticket => $Ticket );
+my ($new, $msg) = $Article->ParseTemplate( $$content, Ticket => $Ticket, request_args => { $m->request_args } );
 unless ( defined $new && length $new ) {
     $RT::Logger->error("Couldn't parse article's content: $msg");
 } else {

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list