From: Alan Knowles Date: Tue, 6 Sep 2011 09:52:34 +0000 (+0800) Subject: MTrack/SCM.php X-Git-Url: http://git.roojs.org/?p=web.mtrack;a=commitdiff_plain;h=63f4dbf106598005bcc5b5873f0ad58d1142949e MTrack/SCM.php --- diff --git a/MTrack/SCM.php b/MTrack/SCM.php index e25fee19..86e8f456 100644 --- a/MTrack/SCM.php +++ b/MTrack/SCM.php @@ -65,12 +65,12 @@ abstract class MTrackSCM foreach ($args as $arg) { if (!is_array($arg)) { - $cmd .= ' ' . escapeshellarg($arg); + $cmd .= ' ' . SCM::escapeshellarg($arg); continue; } foreach ($arg as $a) { - $cmd .= ' ' . escapeshellarg($a); + $cmd .= ' ' .($a); } } @@ -104,7 +104,7 @@ abstract class MTrackSCM } } - function escapeArg($a) { + static function escapeshellarg($a) { if (preg_match('/\-[a-z0-9]+$/i', $a)) { return $a; // raw -a }