Skip to content

Commit 2ebcfb7

Browse files
committed
Merge pull request gumlet#38 from gpaton/patch-1
Fix when open_basedir restriction is in effect
2 parents 683a80e + b41e5dd commit 2ebcfb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ImageResize.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public function save($filename, $image_type = null, $quality = null, $permission
213213
*/
214214
public function getImageAsString($image_type = null, $quality = null)
215215
{
216-
$string_temp = tempnam('', '');
216+
$string_temp = tempnam(sys_get_temp_dir(), '');
217217

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

0 commit comments

Comments
 (0)