Merge pull request #12660 from cakephp/issue-12657-2x

2.x - Don't break UNC file paths
This commit is contained in:
Mark Story 2018-10-21 01:55:01 +00:00 committed by GitHub
commit 001adaa8cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -764,8 +764,6 @@ class Shell extends CakeObject {
* @link https://book.cakephp.org/2.0/en/console-and-shells.html#Shell::createFile
*/
public function createFile($path, $contents) {
$path = str_replace(DS . DS, DS, $path);
$this->out();
if (is_file($path) && empty($this->params['force']) && $this->interactive === true) {