From 9ff0c767af3ee783fb89f92897ec577be246f6f1 Mon Sep 17 00:00:00 2001 From: rockerest Date: Fri, 3 Jan 2014 15:13:24 -0600 Subject: [PATCH] Escape spaces when registering the Perforce client spec --- src/Composer/Util/Perforce.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Util/Perforce.php b/src/Composer/Util/Perforce.php index 47558557b..94b9730eb 100644 --- a/src/Composer/Util/Perforce.php +++ b/src/Composer/Util/Perforce.php @@ -287,7 +287,7 @@ class Perforce public function connectClient() { - $p4CreateClientCommand = $this->generateP4Command('client -i < ' . $this->getP4ClientSpec()); + $p4CreateClientCommand = $this->generateP4Command('client -i < ' . str_replace( " ", "\\ ", $this->getP4ClientSpec() )); $this->executeCommand($p4CreateClientCommand); }