bugfix fixperms call if the filename has space

This commit is contained in:
Steven Mondji-Lerider 2012-09-27 10:10:49 +00:00
parent 50bbaacad4
commit e9cfd81ba4
1 changed files with 1 additions and 1 deletions

View File

@ -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."));