Bug 10630

Summary: Squid-Accounting invalid preview file-extension
Product: IPFire Reporter: Tobias Klein <uebergangsemailadresse>
Component: ---Assignee: Alexander Marx <alexander.marx>
Status: CLOSED FIXED QA Contact:
Severity: Balancing    
Priority: - Unknown - CC: michael.tremer, uebergangsemailadresse
Version: 2   
Hardware: i686   
OS: All   

Description Tobias Klein 2014-09-23 18:50:25 UTC
When you click on billgroup and want to see the bill-preview then the preview extension is 'tmp.pdf' so that you can't open the pdf-file.

In accouting.cgi on line 102 the '' has to remove.
Then is file extension valid.

Diff from /srv/web/ipfire/cgi-bin/accounting.cgi

--- /srv/web/ipfire/cgi-bin/accounting.cgi      2014-09-23 18:30:11.983180155 +0200
+++ /root/accounting.cgi        2014-09-23 18:43:40.929825741 +0200
@@ -99,7 +99,7 @@
        print "Content-Type:application/pdf\n";
        my @fileinfo = stat($tempfile);
        print "Content-Length:$fileinfo[7]\n";
-       print "Content-Disposition:attachment;filename=tmp.pdf;\n\n";
+       print "Content-Disposition:attachment;filename='tmp.pdf';\n\n";
        print @fileholder;
        unlink ($tempfile);
        exit (0);
Comment 1 Alexander Marx 2015-02-25 10:36:41 UTC
Already fixed and committed