bugfix fixperms call if the filename has space
This commit is contained in:
parent
50bbaacad4
commit
e9cfd81ba4
|
@ -530,7 +530,7 @@ class m_bro {
|
|||
@touch($absolute."/".$_FILES['userfile']['name']);
|
||||
}
|
||||
if (@move_uploaded_file($_FILES['userfile']['tmp_name'], $absolute."/".$_FILES['userfile']['name'])) {
|
||||
exec("sudo /usr/lib/alternc/fixperms.sh -u ".$cuid." -f ".$absolute."/".$_FILES['userfile']['name']);
|
||||
exec("sudo /usr/lib/alternc/fixperms.sh -u ".$cuid." -f '".$absolute."/".$_FILES['userfile']['name']."'");
|
||||
return $absolute."/".$_FILES['userfile']['name'];
|
||||
} else {
|
||||
$err->raise("bro",("Cannot create the requested file. Please check permissions."));
|
||||
|
|
Loading…
Reference in New Issue