1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-05 00:07:44 +02:00

[ticket/15738] Remove code related with safe_mode

PHPBB3-15738
This commit is contained in:
Rubén Calvo
2018-07-30 13:58:52 +02:00
committed by Marc Alexander
parent ab0dae6003
commit 688d022f42
5 changed files with 4 additions and 11 deletions

View File

@@ -613,12 +613,6 @@ function create_thumbnail($source, $destination, $mimetype)
imagecopyresampled($new_image, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height);
}
// If we are in safe mode create the destination file prior to using the gd functions to circumvent a PHP bug
if (@ini_get('safe_mode') || @strtolower(ini_get('safe_mode')) == 'on')
{
@touch($destination);
}
switch ($type['format'])
{
case IMG_GIF: