X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=MTrack%2FSCM.php;h=86e8f456c806edb44dc9de002143d0549eafc207;hb=63f4dbf106598005bcc5b5873f0ad58d1142949e;hp=e25fee1942a3331c34f3cb9f1ee0f764364baaf6;hpb=e4fd237ff10eaf0c3eddb46ab5783d3a8d7f05cf;p=web.mtrack 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 }