patch secure: 3becc03d23
This commit is contained in:
parent
7b9597da2d
commit
e78d92c535
1 changed files with 77 additions and 77 deletions
|
|
@ -2,19 +2,19 @@
|
|||
require_once("config.php");
|
||||
|
||||
if (!function_exists('ft_nonce_is_valid')) {
|
||||
include_once "../editor.lib.php";
|
||||
include_once('../editor.lib.php');
|
||||
}
|
||||
|
||||
if (!function_exists('che_reprocessImage')) {
|
||||
function che_reprocessImage($file_path, $callback)
|
||||
{
|
||||
$MIME_TYPES_PROCESSORS = array(
|
||||
"image/gif" => array("imagecreatefromgif", "imagegif"),
|
||||
"image/jpg" => array("imagecreatefromjpeg", "imagejpeg"),
|
||||
"image/jpeg" => array("imagecreatefromjpeg", "imagejpeg"),
|
||||
"image/png" => array("imagecreatefrompng", "imagepng"),
|
||||
"image/webp" => array("imagecreatefromwebp", "imagewebp"),
|
||||
"image/bmp" => array("imagecreatefromwbmp", "imagewbmp")
|
||||
"image/gif" => ["imagecreatefromgif", "imagegif"],
|
||||
"image/jpg" => ["imagecreatefromjpeg", "imagejpeg"],
|
||||
"image/jpeg" =>["imagecreatefromjpeg", "imagejpeg"],
|
||||
"image/png" => ["imagecreatefrompng", "imagepng"],
|
||||
"image/webp" =>["imagecreatefromwebp", "imagewebp"],
|
||||
"image/bmp" => ["imagecreatefromwbmp", "imagewbmp"],
|
||||
);
|
||||
|
||||
// Extracting mime type using getimagesize
|
||||
|
|
|
|||
Loading…
Reference in a new issue