Skip to content
Snippets Groups Projects
Commit a76e6cb4 authored by Jared Hancock's avatar Jared Hancock
Browse files

Merge pull request #631 from protich/issue/607

Make tempnam play nice with open_basedir restriction on.

References:
http://us2.php.net/manual/en/function.tempnam.php#93256



Reviewed-By: default avatarJared Hancock <jared@osticket.com>
parents 2711f3c8 fcfa3f5b
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ class Ticket2PDF extends mPDF
return INCLUDE_DIR.'fpdf/print-logo.png';
}
$tmp = tempnam("", 'pdf') . '.jpg';
$tmp = tempnam(sys_get_temp_dir(), 'pdf') . '.jpg';
$img = imagecreatefromstring($logo->getData());
// Handle transparent images with white background
$img2 = imagecreatetruecolor(imagesx($img), imagesy($img));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment