hasanarbsq / osfilemanager

Automatically exported from code.google.com/p/osfilemanager
0 stars 0 forks source link

Deleting a file with a space in the name #19

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Login as admin.
2. Check-mark next to a file with a space in it's name.
3. Bulk Actions -> Delete -> Go -> Confirm Yes

What is the expected output? What do you see instead?
Expected Output: Successfully deleted.
What I see instead: unlink(files/Steve/BandC) [function.unlink]: No such file 
or directory

What version of the product are you using? On what operating system? On
what web host?
osFileManager 2.2, Linux, BlueHost

Please provide any additional information below.
Work around is renaming the file before trying to delete - remove the space(s).

Original issue reported on code.google.com by chrisvh...@gmail.com on 23 Jul 2010 at 2:33

GoogleCodeExporter commented 8 years ago
is a fix available for this problem?

Original comment by i...@dennisbach.de on 7 Apr 2011 at 2:58

GoogleCodeExporter commented 8 years ago
Have not seen any fix, but the work around is to rename the file before 
deleting (remove the space in rename).

Original comment by chrisvh...@gmail.com on 7 Apr 2011 at 3:13

GoogleCodeExporter commented 8 years ago
here some information to fix the problem:
make changes in the function bulk_submit:
change in all hidden input types the value=$file INTO value=\"$file\"

that should work

Original comment by i...@dennisbach.de on 8 Apr 2011 at 9:32

GoogleCodeExporter commented 8 years ago
Alternative syntax would be to use ' instead of \"

        echo "$file <input type=hidden name=filesel[$a] value='$file'><br>\n";

Original comment by TStephen...@gmail.com on 13 Aug 2011 at 4:58