Fixed trailing slash

This commit is contained in:
Corpsee 2014-06-05 22:00:49 +07:00
parent 9e73151755
commit 55d354d000

View file

@ -90,13 +90,13 @@ class InstallCommand extends Command
$conf['b8']['database'] = $db;
$conf['phpci']['url'] = $dialog->askAndValidate(
$output,
'Your PHPCI URL without trailing slash ("http://phpci.local" for example): ',
'Your PHPCI URL ("http://phpci.local" for example): ',
function ($answer) {
if (!filter_var($answer, FILTER_VALIDATE_URL)) {
throw new Exception('Must be a valid URL');
}
return $answer;
return rtrim($answer, '/');
},
false
);