PluginProbe
PDF & Print by BestWebSoft – WordPress Posts and Pages PDF Generator Plugin / 1.5
PDF & Print by BestWebSoft – WordPress Posts and Pages PDF Generator Plugin v1.5
trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 1.7.7 1.7.8 1.7.9 1.8.0 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9.0 1.9.1 All 71 releases
← All changes | mpdf/includes/out.php +2 -3 1.71.5 View file →
@@ -1,11 +1,10 @@
1 1 <?php
2 2
3 -$path = '../tmp/';
4 3
5 4 $tempfilename = $_REQUEST['filename'].'.pdf';
6 -if (strstr($tempfilename,'/') || strstr($tempfilename,'\\')) { die("Filename should not contain \ or / "); }
7 5 $opname = $_REQUEST['opname'];
6 +$path = urldecode($_REQUEST['path']);
8 7 $dest = $_REQUEST['dest'];
9 8 if ($tempfilename && file_exists($path.$tempfilename)) {
10 9 // mPDF 5.3.17
11 10 if ($dest=='I') {
@@ -38,9 +37,9 @@
38 37 if (!isset($_SERVER['HTTP_ACCEPT_ENCODING']) OR empty($_SERVER['HTTP_ACCEPT_ENCODING'])) {
39 38 // don't use length if server using compression
40 39 header('Content-Length: '.$filesize);
41 40 }
42 - $fd=fopen($path.$tempfilename,'rb');
41 + $fd=fopen($path.$tempfilename,'rb'); // mPDF 5.3.85
43 42 fpassthru($fd);
44 43 fclose($fd);
45 44 unlink($path.$tempfilename);
46 45 // ====================== DELETE OLD FILES - Housekeeping =========================================