changed escapeshellcmd to escapeshellarg
This commit is contained in:
parent
45e56de78e
commit
63c8c87ab7
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ function autoload($class)
|
|||
*/
|
||||
function getSvnRevision($file)
|
||||
{
|
||||
$cmd = 'HOME=/tmp /usr/bin/svn info ' . escapeshellcmd($file);
|
||||
$cmd = 'HOME=/tmp /usr/bin/svn info ' . escapeshellarg($file);
|
||||
exec($cmd, $output);
|
||||
foreach ($output as $line) {
|
||||
if (preg_match('/^Last Changed Rev: ([0-9]+)$/', $line, $matches)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue