Explorar el Código

escape shell args

Robert Schönthal hace 11 años
padre
commit
e36d7f23ef
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/Composer/Command/HomeCommand.php

+ 2 - 0
src/Composer/Command/HomeCommand.php

@@ -98,6 +98,8 @@ EOT
      */
     private function openBrowser($url)
     {
+        $url = escapeshellarg($url);
+
         if (defined('PHP_WINDOWS_VERSION_MAJOR')) {
             return passthru('start "web" explorer "' . $url . '"');
         }