From 8d80969f26b2e49e717b7299d2f9373da1b2c6b5 Mon Sep 17 00:00:00 2001 From: till Date: Fri, 9 Mar 2012 14:34:17 +0100 Subject: [PATCH] trim input --- src/Composer/Repository/Vcs/SvnDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Repository/Vcs/SvnDriver.php b/src/Composer/Repository/Vcs/SvnDriver.php index a8bbaf4b6..643badcdb 100644 --- a/src/Composer/Repository/Vcs/SvnDriver.php +++ b/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; }