From 55d354d000c8a3a4db1a0af9d17184ab0e57bc52 Mon Sep 17 00:00:00 2001 From: Corpsee Date: Thu, 5 Jun 2014 22:00:49 +0700 Subject: [PATCH] Fixed trailing slash --- PHPCI/Command/InstallCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PHPCI/Command/InstallCommand.php b/PHPCI/Command/InstallCommand.php index f34c1af4..43495dc0 100644 --- a/PHPCI/Command/InstallCommand.php +++ b/PHPCI/Command/InstallCommand.php @@ -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 );