misc: pass --ssl-protocol=any to phantomjs, it forces SSLv3 otherwise (#7032)

This commit is contained in:
Frédéric Péters 2015-04-23 11:48:09 +02:00 committed by Thomas NOEL
parent 721a719fac
commit 4544174855
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ def decorate_as_pdf(content):
tmpfile.write(html_page)
tmpfile.close()
phantomjs_script = os.path.join(get_publisher().DATA_DIR, 'print-html-as-pdf.js')
subprocess.check_call(['phantomjs', phantomjs_script, tmpfile.name])
subprocess.check_call(['phantomjs', '--ssl-protocol=any', phantomjs_script, tmpfile.name])
pdf_fd = open(tmpfile.name + '.pdf')
pdf_content = pdf_fd.read()
pdf_fd.close()