Skip to content

Commit

Permalink
Merge pull request #38 from gpaton/patch-1
Browse files Browse the repository at this point in the history
Fix when open_basedir restriction is in effect
  • Loading branch information
adityapatadia committed Mar 6, 2016
2 parents 683a80e + b41e5dd commit 2ebcfb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ImageResize.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public function save($filename, $image_type = null, $quality = null, $permission
*/
public function getImageAsString($image_type = null, $quality = null)
{
$string_temp = tempnam('', '');
$string_temp = tempnam(sys_get_temp_dir(), '');

$this->save($string_temp, $image_type, $quality);

Expand Down

0 comments on commit 2ebcfb7

Please sign in to comment.