Commit 63c8c87a authored by jepso's avatar jepso

changed escapeshellcmd to escapeshellarg

parent 45e56de7
...@@ -56,7 +56,7 @@ function autoload($class) ...@@ -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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment