cappsy / clients-oriented-ftp

Automatically exported from code.google.com/p/clients-oriented-ftp
0 stars 0 forks source link

Wrong files are deleted #503

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

On manage-files.php when I check file and I select "Delete", wrong file is 
deleted.

On HTML source, the file rel id (28) is the same on all files :
<input type="checkbox" name="files[]" value="28" />

I modified the file manage-files.php :
- <input type="checkbox" name="files[]" value="<?php echo $file_id; ?>
+ <input type="checkbox" name="files[]" value="<?php echo $row['id']; ?>

And includes/classes/actions-files.php (delete_files method) :
I delete the file directly with its identifier, and not with his id present in 
the relationship table.

It works but only with delete action, but no with hide, show & unassign (is 
specific for each user).

Server informations:
- Debian 7.6
- Apache 2.2.22
- PHP 5.4.4

Thank you.
Cyril

Original issue reported on code.google.com by cyril.go...@gmail.com on 17 Oct 2014 at 12:31

GoogleCodeExporter commented 8 years ago
Duplicate of issue 497 
https://code.google.com/p/clients-oriented-ftp/issues/detail?id=497

Workaround posted

Original comment by crashf...@gmail.com on 17 Oct 2014 at 6:14