freeside/httemplate/view cust_bill-logo.cgi,1.1,1.2
Ivan Kohler
ivan at pouncequick.420.am
Wed Jun 8 23:56:36 PDT 2005
Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory pouncequick:/tmp/cvs-serv29911/httemplate/view
Modified Files:
cust_bill-logo.cgi
Log Message:
agent-specific logos for html invoices too
Index: cust_bill-logo.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_bill-logo.cgi,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- cust_bill-logo.cgi 14 May 2005 17:04:55 -0000 1.1
+++ cust_bill-logo.cgi 9 Jun 2005 06:56:31 -0000 1.2
@@ -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' );
More information about the freeside-commits
mailing list