1
0
mirror of synced 2025-01-18 06:21:40 +03:00

changed escapeshellcmd to escapeshellarg

This commit is contained in:
jepso 2007-09-01 23:27:06 +00:00
parent 45e56de78e
commit 63c8c87ab7

View File

@ -56,7 +56,7 @@ function autoload($class)
*/ */
function getSvnRevision($file) function getSvnRevision($file)
{ {
$cmd = 'HOME=/tmp /usr/bin/svn info ' . escapeshellcmd($file); $cmd = 'HOME=/tmp /usr/bin/svn info ' . escapeshellarg($file);
exec($cmd, $output); exec($cmd, $output);
foreach ($output as $line) { foreach ($output as $line) {
if (preg_match('/^Last Changed Rev: ([0-9]+)$/', $line, $matches)) { if (preg_match('/^Last Changed Rev: ([0-9]+)$/', $line, $matches)) {