Skip to content

Commit 7b8e640

Browse files
YHalo-wyhcorpsee
authored andcommitted
fix: escape svn webhook commit id in export command
1 parent cd68d10 commit 7b8e640

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Model/Build/SvnBuild.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ protected function cloneByHttp(Builder $builder, $cloneTo)
111111

112112
if (!empty($this->getCommitId())) {
113113
$cmd .= ' -r %s %s "%s"';
114-
$success = $builder->executeCommand($cmd, $this->getCommitId(), $this->getCloneUrl(), $cloneTo);
114+
$success = $builder->executeCommand($cmd, \escapeshellarg($this->getCommitId()), $this->getCloneUrl(), $cloneTo);
115115
} else {
116116
$cmd .= ' %s "%s"';
117117
$success = $builder->executeCommand($cmd, $this->getCloneUrl(), $cloneTo);

0 commit comments

Comments
 (0)