mirror of
https://github.com/PGYER/codefever.git
synced 2026-05-06 21:50:39 +08:00
@@ -42,8 +42,8 @@ class Command
|
||||
// return '"' . $argument . '"';
|
||||
|
||||
$pattern = [
|
||||
'/(^|[^\\\\])((\\\\\\\\)*[\'\"\$\|])/',
|
||||
'/(^|[^\\\\])((\\\\\\\\)*\\\\([^\'\"\|\$\\\\]|$))/'
|
||||
'/(^|[^\\\\])((\\\\\\\\)*[\s\'\"\$\|])/',
|
||||
'/(^|[^\\\\])((\\\\\\\\)*\\\\([^\s\'\"\|\$\\\\]|$))/'
|
||||
];
|
||||
$replacement = [
|
||||
'$1\\\\$2',
|
||||
|
||||
@@ -1413,7 +1413,7 @@ class Repository_model extends CI_Model
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
$revision = Command::wrapArgument($revision);
|
||||
$revision = Command::wrapArgument($revision);
|
||||
$filepath = Command::wrapArgument($filepath);
|
||||
|
||||
// create target repository workspace
|
||||
@@ -1465,6 +1465,9 @@ class Repository_model extends CI_Model
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
$branch = Command::wrapArgument($branch);
|
||||
$filePath = Command::wrapArgument($filePath);
|
||||
|
||||
$command = GitCommand::getLastLog($branch, $filePath, $lastSha);
|
||||
if (!$command) {
|
||||
return FALSE;
|
||||
|
||||
Reference in New Issue
Block a user