Skip to content
Snippets Groups Projects
Commit 49dceb4d authored by Giovannoni Laurent's avatar Giovannoni Laurent
Browse files

FIX #3076 protect exec

parent 53662b5e
No related branches found
No related tags found
No related merge requests found
......@@ -470,7 +470,10 @@ function Ds_setRights($dest)
&& (isset($GLOBALS['apacheUserAndGroup'])
&& $GLOBALS['apacheUserAndGroup'] <> '')
) {
exec('chown ' . $GLOBALS['apacheUserAndGroup'] . ' ' . $dest);
exec('chown '
. escapeshellarg($GLOBALS['apacheUserAndGroup']) . ' '
. escapeshellarg($dest)
);
}
umask(0022);
chmod($dest, 0770);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment