瀏覽代碼

trim input

till 13 年之前
父節點
當前提交
8d80969f26
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Composer/Repository/Vcs/SvnDriver.php

+ 1 - 1
src/Composer/Repository/Vcs/SvnDriver.php

@@ -98,7 +98,7 @@ class SvnDriver extends VcsDriver implements VcsDriverInterface
 
                 static $cacheTrueAnswers = array('yes', 'y', 'true', 'ja', 'si', 'da');
 
-                $cacheAnswer = strtolower($this->io->ask("Should we Subversion cache these credentials?", 'no'));
+                $cacheAnswer = strtolower(trim($this->io->ask("Should Subversion cache these credentials?", 'no')));
                 if (in_array($cacheAnswer, $cacheTrueAnswers)) {
                     $this->useCache = true;
                 }