projects
/
web.mtrack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e4fd237
)
MTrack/SCM.php
author
Alan Knowles
<alan@akbkhome.com>
Tue, 6 Sep 2011 09:52:34 +0000
(17:52 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Tue, 6 Sep 2011 09:52:34 +0000
(17:52 +0800)
MTrack/SCM.php
patch
|
blob
|
history
diff --git
a/MTrack/SCM.php
b/MTrack/SCM.php
index
e25fee1
..
86e8f45
100644
(file)
--- 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 escapeA
rg($a) {
+
static function escapeshella
rg($a) {
if (preg_match('/\-[a-z0-9]+$/i', $a)) {
return $a; // raw -a
}