Skip to content

Commit bdf5501

Browse files
committed
Merge pull request kbjr#30 from steveworley/add-tags-too-many-params
Quoting the for add_tag
2 parents 89459d9 + 7f78c3d commit bdf5501

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Git.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ public function add_tag($tag, $message = null) {
571571
if ($message === null) {
572572
$message = $tag;
573573
}
574-
return $this->run("tag -a $tag -m $message");
574+
return $this->run("tag -a $tag -m " . escapeshellarg($message));
575575
}
576576

577577
/**

0 commit comments

Comments
 (0)