Browse Source

Merge pull request #2 from rockerest/master

Escape spaces when registering the Perforce client spec
matt-whittom 11 năm trước cách đây
mục cha
commit
4a49533988
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Composer/Util/Perforce.php

+ 1 - 1
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);
     }