Explorar o código

escape shell args

Robert Schönthal %!s(int64=11) %!d(string=hai) anos
pai
achega
e36d7f23ef
Modificáronse 1 ficheiros con 2 adicións e 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 . '"');
         }