LFI to RCE 취약점 수정

This commit is contained in:
thisgun committed 2017-03-20 17:44:56 +09:00
1 parent 8eb465d26f
commit 23a91b346d
7 files changed
+51 -10

No files matched your search

+2 -2
View File
@@ -273,8 +273,8 @@ function thumbnail($filename, $source_path, $target_path, $thumb_width, $thumb_h
}
}
} else if ($size[2] == 3) {
$src = imagecreatefrompng($source_file);
imagealphablending($src, true);
$src = @imagecreatefrompng($source_file);
@imagealphablending($src, true);
} else {
return;
}