Bläddra i källkod

Merge remote branch 'mridgway/vendorScriptSpaces'

* mridgway/vendorScriptSpaces:
  Adding more escapes to shell params
  Using escapeshellarg() instead of quotes
Fabien Potencier 14 år sedan
förälder
incheckning
2e5ed78095
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      vendors.php

+ 2 - 2
vendors.php

@@ -40,8 +40,8 @@ foreach ($deps as $dep) {
 
     $installDir = $vendorDir.'/'.$name;
     if (!is_dir($installDir)) {
-        system(sprintf('git clone %s "%s"', $url, $installDir));
+        system(sprintf('git clone %s %s', escapeshellarg($url), escapeshellarg($installDir)));
     }
 
-    system(sprintf('cd "%s" && git fetch origin && git reset --hard %s', $installDir, $rev));
+    system(sprintf('cd %s && git fetch origin && git reset --hard %s', escapeshellarg($installDir), escapeshellarg($rev)));
 }