diff options
author | ivan <ivan> | 2005-06-09 06:56:31 +0000 |
---|---|---|
committer | ivan <ivan> | 2005-06-09 06:56:31 +0000 |
commit | 0452430dac4d639796581be77e8674207653f42b (patch) | |
tree | cd915615b2b51e6efac77df34962490cb8ceb99d /httemplate | |
parent | 28aa236f554e009b2fc416378717e478992ec715 (diff) |
agent-specific logos for html invoices too
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/view/cust_bill-logo.cgi | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/httemplate/view/cust_bill-logo.cgi b/httemplate/view/cust_bill-logo.cgi index 3e9c67fcc..50812ea10 100755 --- a/httemplate/view/cust_bill-logo.cgi +++ b/httemplate/view/cust_bill-logo.cgi @@ -1,12 +1,9 @@ <% -##untaint invnum -#my($query) = $cgi->keywords; -#$query =~ /^((.+)-)?(\d+)$/; -#my $templatename = $2; -#my $invnum = $3; - -my $templatename = ''; +my($query) = $cgi->keywords; +$query =~ /^([^\.\/]*)$/; +my $templatename = $1; +$templatename = "_$templatename" if $templatename; my $conf = new FS::Conf; http_header('Content-Type' => 'image/png' ); |