PluginProbe
PDF & Print by BestWebSoft – WordPress Posts and Pages PDF Generator Plugin / 1.6
PDF & Print by BestWebSoft – WordPress Posts and Pages PDF Generator Plugin v1.6
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 +3 -2 1.51.6 View file →
@@ -1,10 +1,11 @@
1 1 <?php
2 2
3 +$path = '../tmp/';
3 4
4 5 $tempfilename = $_REQUEST['filename'].'.pdf';
6 +if (strstr($tempfilename,'/') || strstr($tempfilename,'\\')) { die("Filename should not contain \ or / "); }
5 7 $opname = $_REQUEST['opname'];
6 -$path = urldecode($_REQUEST['path']);
7 8 $dest = $_REQUEST['dest'];
8 9 if ($tempfilename && file_exists($path.$tempfilename)) {
9 10 // mPDF 5.3.17
10 11 if ($dest=='I') {
@@ -37,9 +38,9 @@
37 38 if (!isset($_SERVER['HTTP_ACCEPT_ENCODING']) OR empty($_SERVER['HTTP_ACCEPT_ENCODING'])) {
38 39 // don't use length if server using compression
39 40 header('Content-Length: '.$filesize);
40 41 }
41 - $fd=fopen($path.$tempfilename,'rb'); // mPDF 5.3.85
42 + $fd=fopen($path.$tempfilename,'rb');
42 43 fpassthru($fd);
43 44 fclose($fd);
44 45 unlink($path.$tempfilename);
45 46 // ====================== DELETE OLD FILES - Housekeeping =========================================