Skip to content

Commit

Permalink
initial commit, fixing vulnerability with html-pdf package
Browse files Browse the repository at this point in the history
  • Loading branch information
darpham committed Apr 5, 2020
1 parent 035f908 commit 4da195e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pdfCreator.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function createPDFReport(data) {
var filePath = "./reports/report-" + year + "-" + month + "-" + day + ".pdf"
var fileName = "report-" + year + "-" + month + "-" + day + ".pdf"
// create the pdf landscape to fit the table
pdf.create(resultHTML, { format: 'Letter',"orientation": "letter" }).toFile(filePath, function(error, result){
pdf.create(resultHTML, { format: 'Letter',"orientation": "letter", phantomArgs: ['--web-security=no', '--local-url-access=false']}, ).toFile(filePath, function(error, result){
// create file to send pdf file back to user does not take up space on our server
if (error) { // report pdf creation error
console.log("Could not create PDF")
Expand Down

0 comments on commit 4da195e

Please sign in to comment.