From e9cfd81ba477c69d8837b2d8cf70e0c80190658f Mon Sep 17 00:00:00 2001 From: Steven Mondji-Lerider Date: Thu, 27 Sep 2012 10:10:49 +0000 Subject: [PATCH] bugfix fixperms call if the filename has space --- bureau/class/m_bro.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bureau/class/m_bro.php b/bureau/class/m_bro.php index e6f97f00..97186a24 100644 --- a/bureau/class/m_bro.php +++ b/bureau/class/m_bro.php @@ -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."));