Skip to content

Commit

Permalink
Remove filemanager action image_size
Browse files Browse the repository at this point in the history
  • Loading branch information
Quetzacoalt91 authored and jolelievre committed Nov 2, 2018
1 parent 150ed8f commit 4c6958f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions admin-dev/filemanager/ajax_calls.php
Expand Up @@ -24,17 +24,6 @@
if (isset($_GET['descending'])) {
$_SESSION['descending'] = $_GET['descending'] === 'true';
}
break;
case 'image_size':
if (realpath(dirname(_PS_ROOT_DIR_.$_POST['path'])) != realpath(_PS_ROOT_DIR_.$upload_dir)) {
die();
}
$pos = strpos($_POST['path'], $upload_dir);
if ($pos !== false) {
$info = getimagesize(substr_replace($_POST['path'], $current_path, $pos, strlen($upload_dir)));
echo json_encode($info);
}

break;
case 'save_img':
$info = pathinfo($_POST['name']);
Expand Down

0 comments on commit 4c6958f

Please sign in to comment.