till 13 жил өмнө
parent
commit
adfac9e34b

+ 6 - 2
src/Composer/Repository/Vcs/SvnDriver.php

@@ -218,8 +218,12 @@ class SvnDriver extends VcsDriver implements VcsDriverInterface
         if ($this->useAuth !== true) {
             return '';
         }
-        $str = ' --no-auth-cache --username "%s" --password "%s" ';
-        return sprintf($str, $this->svnUsername, $this->svnPassword);
+        $str = ' --no-auth-cache --username %s --password %s ';
+        return sprintf(
+            $str,
+            escapeshellarg($this->svnUsername),
+            escapeshellarg($this->svnPassword)
+        );
     }
 
     /**