Skip to content

Commit 69e980e

Browse files
committed
Remove safe mode
Signed-off-by: Matt Friedman <maf675@gmail.com>
1 parent a5f02c1 commit 69e980e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

attachment/attachment.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -352,12 +352,6 @@ public function create_thumbnail($max_width = false, $min_filesize = false)
352352
imagecopyresampled($new_image, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height);
353353
}
354354

355-
// If we are in safe mode create the destination file prior to using the gd functions to circumvent a PHP bug
356-
if (@ini_get('safe_mode') || @strtolower(ini_get('safe_mode')) == 'on')
357-
{
358-
@touch($destination);
359-
}
360-
361355
switch ($type['format'])
362356
{
363357
case IMG_GIF:

0 commit comments

Comments
 (0)