Fixed delete logs
authorJean-Michel Vourgère <jvourger@greenpeace.org>
Mon, 27 Feb 2017 15:19:18 +0000 (15:19 +0000)
committerJean-Michel Vourgère <jvourger@greenpeace.org>
Thu, 9 Mar 2017 18:06:30 +0000 (18:06 +0000)
squasher.class.php

index a699f4c8e8dd1f495e7fb035f34c29015f810a0c..0b132b306ee534af586d2a25f7ad1285c53494b3 100644 (file)
@@ -912,8 +912,8 @@ function file_crc_debug($file) {
 
 function delete_file($h, $s) {
        $request = $this->get_config($h);
+       $filepath=$request['path'].'/'.$request[2];
        if (strpos($request['path'], './uploads/ftp')) {
-               $filepath=$request['path'].'/'.$request[2];
                #remove file
                if (is_file($filepath))
                        @unlink($filepath);