TheProjecter / osfilemanager

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

Error when changing permissions of folders from interface #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Log in as admin
2. create new folder
3. Change permissions to 0777 using interface

What is the expected output? What do you see instead?

Interface says change is OK, but new Octal is different to specified

What version of the product are you using? On what operating system? On
what web host?

Using version 2.2 on Centos 5

Please provide any additional information below.

Error is on line 857 of index.php.

Line reads:

if(@chmod($userdir.$d.$file, $ndir)) echo "<font class=ok>".$file."'s 
permissions have been sucessfully chnaged.<br>\n";

Line should read:

if(@chmod($userdir.$d.$file, intval($ndir,8))) echo "<font class=ok>".$file."'s 
permissions have been sucessfully changed.<br>\n";

Hope that this helps someone.

Original issue reported on code.google.com by pelli...@googlemail.com on 27 Jul 2010 at 1:49