Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if isset $_GET['save_file'] not in dompdf.php script #54

Closed
PhenX opened this issue Dec 6, 2012 · 1 comment
Closed

if isset $_GET['save_file'] not in dompdf.php script #54

PhenX opened this issue Dec 6, 2012 · 1 comment

Comments

@PhenX
Copy link
Member

PhenX commented Dec 6, 2012

Original author: andrew.s...@sadlerenergy.co.uk (July 30, 2009 12:10:37)

There does not seem to be any if statement for $_GET['save_file'] to deal
with the save_file and set it to true. It gets set to false when the $_GET
['base_path'] is set. This means that even if you send the save_file
variable to the dompdf script it is ignored. I have added it to my script
because I want to save the pdf in a tmp file and then attach it to an
email through php.

$url = "dompdf.php?input_file=" . rawurlencode
($tmpfile) . "&paper=letter&output_file=" . rawurlencode("My Fancy
PDF.pdf") . "&save_file=true&base_path=D:\website\dompdf-0.5.1\tmp";

Original issue: http://code.google.com/p/dompdf/issues/detail?id=47

@PhenX
Copy link
Member Author

PhenX commented Dec 6, 2012

From fabien.menager on July 27, 2010 20:12:18
We now recommend using the DOMPDF class directly. Please open a new issue if this is still a blocking feature for you. DOMPDF 0.6 doesn't have a save_file or out_file parameter, I guess this is beacause it was a security hole.

@PhenX PhenX closed this as completed Dec 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant