diff --git a/lib/Cake/Console/Command/Task/ExtractTask.php b/lib/Cake/Console/Command/Task/ExtractTask.php index ab5ceaaf9..8b30e87dd 100644 --- a/lib/Cake/Console/Command/Task/ExtractTask.php +++ b/lib/Cake/Console/Command/Task/ExtractTask.php @@ -162,7 +162,7 @@ class ExtractTask extends Shell { } else { $message = __d('cake_console', "What is the path you would like to output?\n[Q]uit", $this->_paths[0] . DS . 'Locale'); while (true) { - $response = $this->in($message, null, $this->_paths[0] . DS . 'Locale'); + $response = $this->in($message, null, rtrim($this->_paths[0], DS) . DS . 'Locale'); if (strtoupper($response) === 'Q') { $this->out(__d('cake_console', 'Extract Aborted')); $this->_stop(); @@ -187,6 +187,7 @@ class ExtractTask extends Shell { if (empty($this->_files)) { $this->_searchFiles(); } + $this->_output = rtrim($this->_output, DS) . DS; $this->_extract(); }