Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 55d6d95

Browse files
committed
Issue #1328: Example of problem areas and fixes.
1 parent 5c44a6b commit 55d6d95

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

phing/phingcludes/DrushTask.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public function init() {
246246
public function main() {
247247
$command = array();
248248

249-
$command[] = !empty($this->bin) ? $this->bin : 'drush';
249+
$command[] = !empty($this->bin) ? escapeshellarg($this->bin) : 'drush';
250250

251251
if (!empty($this->alias)) {
252252
$command[] = '@' . $this->alias;

phing/tasks/properties.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<exec dir="${repo.root}" command="echo '8.5.2' >> ${blt.config-files.schema-version}" checkreturn="true" logoutput="true" passthru="false" level="${blt.exec_level}"/>
4040
</then>
4141
</if>
42-
<exec dir="${repo.root}" command="cat ${blt.config-files.schema-version}" outputProperty="blt.schema-version" checkreturn="true" logoutput="false" level="${blt.exec_level}"/>
42+
<exec dir="${repo.root}" command="cat '${blt.config-files.schema-version}'" outputProperty="blt.schema-version" checkreturn="true" logoutput="false" level="${blt.exec_level}"/>
4343
<!-- Send errors to /dev/null, for environments like ACE without composer. -->
4444
<exec dir="${repo.root}" command="composer info acquia/blt --no-ansi 2> /dev/null | grep versions | awk '{print $4}'" outputProperty="blt.version" logoutput="false" checkreturn="true" level="${blt.exec_level}" />
4545

0 commit comments

Comments
 (0)